/* ============================================================
   Taller Arranque — shared legal stylesheet
   privacy.html and terms-of-service.html
   ============================================================ */

.legal-page {
  background-color: #0B0E14;
  color: #E8EAED;
}

.legal-page * {
  box-sizing: border-box;
}

.legal-page body {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.75;
  color: #E8EAED;
  background-color: #0B0E14;
}

.legal-page h1,
.legal-page h2,
.legal-page h3,
.legal-page h4 {
  font-family: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: #E8EAED;
  margin: 0 0 0.6em;
}

.legal-page p {
  margin: 0 0 1.15em;
  color: #C7CED9;
}

.legal-page ul,
.legal-page ol {
  margin: 0 0 1.25em;
  padding-left: 1.5em;
  color: #C7CED9;
}

.legal-page li {
  margin-bottom: 0.5em;
}

.legal-page a {
  color: #D9A441;
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

.legal-page strong {
  color: #E8EAED;
}

/* Header (must be a div/header element, never a section) */
.legal-header {
  background: linear-gradient(135deg, #161B26 0%, #0B0E14 70%);
  border-bottom: 1px solid #242C3A;
  padding: 56px 0 44px;
}

.legal-header .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #E8EAED;
  margin-bottom: 26px;
}

.legal-header .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #E0B45C, #C8923E);
  display: grid;
  place-items: center;
  color: #0B0E14;
  font-weight: 800;
  font-size: 0.8rem;
}

.legal-header h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  letter-spacing: -0.02em;
  color: #F3F4F6;
  margin: 0 0 10px;
}

.legal-header .meta {
  font-size: 0.9rem;
  color: #A3ADBD;
  margin: 0;
}

/* Content */
.legal-content {
  padding: 48px 0 72px;
}

.legal-content .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Table of contents */
.legal-toc {
  background: #161B26;
  border: 1px solid #242C3A;
  border-radius: 14px;
  padding: 26px 28px;
  margin: 0 0 48px;
}

.legal-toc .toc-title {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #E8EAED;
  margin-bottom: 16px;
}

.legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 40px;
}

.legal-toc li {
  margin-bottom: 10px;
  break-inside: avoid;
}

.legal-toc a {
  color: #C7CED9;
  font-size: 0.92rem;
  text-decoration: none;
}

.legal-toc a:hover {
  color: #D9A441;
}

/* Section styling */
.legal-content section {
  margin-bottom: 44px;
  padding-top: 8px;
}

.legal-content h2 {
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  color: #F3F4F6;
  border-bottom: 1px solid #242C3A;
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.legal-content h3 {
  font-size: 1.15rem;
  color: #E8EAED;
  margin-top: 1.4em;
}

/* Scope isolation: guarantee legal sections are never polluted by homepage styles */
.legal-page .legal-content section {
  background-color: transparent !important;
  color: #C7CED9 !important;
}

.legal-page .legal-content section h2,
.legal-page .legal-content section h3 {
  color: #F3F4F6 !important;
}

/* Footer */
.legal-footer {
  border-top: 1px solid #242C3A;
  background: #0B0E14;
}

.legal-footer .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.legal-footer .foot-brand {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #E8EAED;
}

.legal-footer .back-link {
  color: #D9A441;
  font-size: 0.9rem;
}

.legal-footer .foot-note {
  font-size: 0.85rem;
  color: #78828F;
}

@media (max-width: 720px) {
  .legal-toc ol {
    columns: 1;
  }
}
