/* Estilos compartidos: términos, privacidad, ayuda, publica-tu-perfil, 404.
   Reutiliza las variables de styles.css/membership.css y la regla
   html[data-theme="dark"] ya definida allí, por lo que basta con usar
   var(--ink), var(--cream), var(--red), var(--muted), var(--line). */

.legal-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 5vw 100px;
}

.legal-eyebrow {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin: 0 0 10px;
}

.legal-title {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  letter-spacing: -.03em;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.04;
  margin: 0 0 14px;
}

.legal-updated {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 40px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 72ch);
  gap: 48px;
  align-items: start;
  justify-content: center;
}

.legal-toc {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 20px);
  padding: 18px 20px;
  font-size: 13px;
}

.legal-toc h2 {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
  font-weight: 700;
}

.legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.legal-toc a {
  color: var(--ink);
  text-decoration: none;
  opacity: .78;
  line-height: 1.4;
}

.legal-toc a:hover { opacity: 1; color: var(--red); }

.legal-content {
  min-width: 0;
  line-height: 1.75;
  font-size: 15px;
}

.legal-content section {
  padding-top: 8px;
  margin-bottom: 38px;
  scroll-margin-top: 96px;
}

.legal-content h2 {
  font-family: "Baloo 2", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.legal-content section:first-of-type h2 { border-top: 0; padding-top: 0; }

.legal-content h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 20px 0 8px;
}

.legal-content p { margin: 0 0 14px; color: var(--ink); }

.legal-content ul, .legal-content ol.legal-list {
  margin: 0 0 14px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-content a { color: var(--red); }

.legal-note {
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 20px);
  padding: 16px 18px;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 30px;
}

.legal-note strong { color: var(--ink); }

/* ---------------------------------------------------------------- ayuda */

.help-search-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 30px;
}

.help-group {
  margin-bottom: 44px;
}

.help-group h2 {
  font-family: "Baloo 2", sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 16px;
}

.help-group > p {
  color: var(--muted);
  font-size: 13px;
  margin: -10px 0 18px;
}

details.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 20px);
  padding: 4px 20px;
  margin-bottom: 10px;
  background: color-mix(in srgb, var(--ink) 2.5%, transparent);
}

details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 26px 16px 0;
  font-weight: 600;
  font-size: 14.5px;
  position: relative;
}

details.faq summary::-webkit-details-marker { display: none; }

details.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 20px;
  color: var(--red);
  transition: transform .2s;
}

details.faq[open] summary::after { content: "−"; }

details.faq p, details.faq ul {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.help-report-card {
  border: 1px solid var(--red);
  border-radius: var(--radius-md, 20px);
  padding: 24px 26px;
  background: color-mix(in srgb, var(--red) 6%, transparent);
  margin-bottom: 20px;
}

.help-report-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.help-refs {
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 20px);
  padding: 20px 24px;
}

.help-refs ul { margin: 10px 0 0; padding-left: 20px; }
.help-refs li { margin-bottom: 8px; font-size: 13.5px; }

/* -------------------------------------------------------- captación */

.creator-hero {
  text-align: center;
  max-width: 780px;
  margin: 20px auto 56px;
}

.creator-hero h1 {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  letter-spacing: -.035em;
  font-size: clamp(40px, 6vw, 76px);
  line-height: .98;
  margin: 0 0 20px;
}

.creator-hero h1 em { color: var(--red); font-style: normal; }

.creator-hero p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 28px;
}

.creator-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.creator-cta-row .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  text-decoration: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  font: 600 13px "Baloo 2", sans-serif;
}

.creator-cta-row .button.primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.creator-section {
  margin: 0 auto 64px;
  max-width: 1040px;
}

.creator-section h2 {
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -.02em;
  text-align: center;
  margin: 0 0 32px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.benefit-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 20px);
  padding: 22px 20px;
}

.benefit-card .benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  margin-bottom: 14px;
}

.benefit-card h3 { font-size: 15.5px; margin: 0 0 8px; }
.benefit-card p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.6; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 20px);
  padding: 22px 18px;
  position: relative;
}

.step-card .step-num {
  font-family: "Baloo 2", sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--red);
  margin: 0 0 10px;
}

.step-card h3 { font-size: 14.5px; margin: 0 0 6px; }
.step-card p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.6; }

.pricing-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 32px);
  padding: 34px 30px;
  text-align: center;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 16px;
  max-width: 560px;
  margin: 20px auto 0;
}

.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 20px);
  padding: 20px;
}

.price-card b {
  display: block;
  font-family: "Baloo 2", sans-serif;
  font-size: 26px;
  margin: 6px 0 2px;
}

.price-card span { font-size: 12px; color: var(--muted); }

.pricing-note {
  font-size: 12.5px;
  color: var(--muted);
  margin: 18px 0 0;
}

.pricing-block[hidden] { display: none; }

.mini-faq details.faq { background: none; }

/* ---------------------------------------------------------------- 404 */

.notfound-main {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 20px;
}

.notfound-main .legal-eyebrow { justify-self: center; }

.notfound-code {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: clamp(80px, 14vw, 160px);
  line-height: .9;
  color: var(--red);
  margin: 0;
}

.notfound-main p { color: var(--muted); max-width: 440px; margin: 16px auto 26px; }

.notfound-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.notfound-actions .button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; text-decoration: none;
  border: 1px solid var(--ink); color: var(--ink); font: 600 13px "Baloo 2", sans-serif;
}
.notfound-actions .button.primary { background: var(--red); border-color: var(--red); color: #fff; }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; top: auto; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  footer { grid-template-columns: 1fr 1fr; row-gap: 16px; }
}

@media (max-width: 560px) {
  .legal-main { padding: 32px 20px 70px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer div { justify-content: center; }
}
