/* EasyLaundry.app — páginas internas (legales, punto de venta, 404).
   Se carga después de landing.css y reutiliza sus variables y componentes. */

button.lang-btn {
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(160deg, #050d2b 0%, #0a2a7a 60%, #0b44b8 100%);
}

.page-hero .wrap {
  position: relative;
  padding: 56px 0 60px;
}

.page-hero h1 {
  max-width: 24ch;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.page-hero .legal-updated {
  margin-top: 14px;
  color: #cfe0ff;
  font-size: 1rem;
}

/* ---------- Documento largo ---------- */
.doc {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 48px 0 88px;
}

.doc-toc {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 18px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--soft);
}

.doc-toc[hidden] {
  display: none;
}

.doc-toc-title {
  margin-bottom: 10px;
  color: var(--ink-2);
  font-family: "Sora", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc-toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-toc a {
  display: block;
  padding: 6px 10px;
  border-left: 3px solid transparent;
  border-radius: 0 8px 8px 0;
  color: var(--ink-2);
  font-size: 0.86rem;
  line-height: 1.35;
  text-decoration: none;
}

.doc-toc a:hover {
  color: var(--ink);
  background: #fff;
}

.doc-toc a.is-current {
  border-left-color: var(--blue);
  color: var(--blue-deep);
  background: #fff;
  font-weight: 600;
}

.doc-main {
  min-width: 0;
}

.doc-main > * {
  max-width: 76ch;
}

.doc-main > .wide {
  max-width: none;
}

.legal-notice {
  margin-bottom: 28px;
  padding: 14px 18px;
  border: 1px solid #ffd9b8;
  border-left: 4px solid var(--warm);
  border-radius: 12px;
  color: #4a2a12;
  background: #fff7ec;
  font-size: 0.92rem;
}

.legal-content {
  color: #1e2a47;
  font-size: 1.02rem;
  line-height: 1.78;
}

.legal-content h2 {
  margin: 2.4em 0 0.7em;
  padding-top: 0.2em;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  scroll-margin-top: 96px;
}

.legal-content > h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin: 1.8em 0 0.5em;
  font-size: 1.12rem;
  line-height: 1.3;
  scroll-margin-top: 96px;
}

.legal-content p {
  margin: 0 0 1em;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}

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

.legal-content li::marker {
  color: var(--blue);
}

.legal-content a {
  color: var(--blue-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

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

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

.legal-content table,
.legal-table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 1.4em;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.5;
}

.legal-content th,
.legal-content td,
.legal-table th,
.legal-table td {
  min-width: 120px;
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.legal-content th,
.legal-table th {
  color: var(--ink);
  background: var(--soft);
  font-family: "Sora", sans-serif;
  font-size: 0.82rem;
}

/* ---------- Punto de venta (página de producto) ---------- */
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 44px;
  align-items: center;
}

.product-hero h1 {
  max-width: 20ch;
}

.product-hero .hero-actions {
  margin-top: 26px;
}

.pos-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pos-card-title {
  margin-bottom: 14px;
  color: #6fe9ff;
  font-family: "Sora", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pos-states {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  counter-reset: st;
}

.pos-states li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  font-weight: 600;
  counter-increment: st;
}

.pos-states li::before {
  content: counter(st);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-family: "Sora", sans-serif;
  font-size: 0.8rem;
}

.pos-states li:last-child::before {
  background: var(--wa-deep);
}

.pos-points {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #e6f0ff;
  font-size: 0.92rem;
}

.pos-points li {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pos-points svg {
  flex: none;
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  color: #04361b;
  background: var(--wa);
}

.doc-product .legal-content {
  max-width: none;
}

.doc-product .doc-main > * {
  max-width: none;
}

.doc-product .legal-content > p,
.doc-product .legal-content > h2,
.doc-product .legal-content > h3 {
  max-width: 76ch;
}

/* Listas de ventajas como tarjetas */
.legal-content ul.adv-grid,
.legal-content ol.eco-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
}

.adv-grid li,
.eco-list li {
  position: relative;
  margin: 0;
  padding: 20px 22px;
  border: 1px solid var(--line-soft);
  border-top: 4px solid var(--c, var(--blue));
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 0.97rem;
  line-height: 1.6;
}

.adv-grid li:nth-child(6n + 1), .eco-list li:nth-child(4n + 1) { --c: var(--blue); }
.adv-grid li:nth-child(6n + 2), .eco-list li:nth-child(4n + 2) { --c: var(--cyan); }
.adv-grid li:nth-child(6n + 3), .eco-list li:nth-child(4n + 3) { --c: var(--violet); }
.adv-grid li:nth-child(6n + 4), .eco-list li:nth-child(4n + 4) { --c: var(--wa); }
.adv-grid li:nth-child(6n + 5) { --c: var(--warm); }
.adv-grid li:nth-child(6n + 6) { --c: #ff5fa2; }

.adv-grid li strong,
.eco-list li strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Sora", sans-serif;
  font-size: 1.02rem;
}

.eco-list li strong {
  display: inline;
  font-size: inherit;
}

.legal-content ul.check-grid {
  padding: 0;
  list-style: none;
}

.check-grid li {
  position: relative;
  padding-left: 30px;
}

.check-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--wa-deep);
  box-shadow: inset 0 0 0 4px #fff, 0 0 0 0 transparent;
  border: 5px solid var(--wa-deep);
}

.cta-band {
  margin: 3em 0 0;
  padding: 34px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, #0a2a7a, #075cff 70%, #7a4dff);
  box-shadow: var(--shadow-md);
}

.cta-band h2 {
  margin: 0 0 0.5em;
  color: #fff;
}

.cta-band p {
  color: #e6f0ff;
}

.cta-band a:not(.button) {
  color: #fff;
  font-weight: 600;
}

.cta-band .hero-actions {
  margin-top: 22px;
}

/* ---------- 404 ---------- */
.nf-hero .wrap {
  padding: 80px 0 88px;
}

.nf-code {
  display: block;
  margin-bottom: 8px;
  font-family: "Sora", sans-serif;
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #6fe9ff, #7a4dff 60%, #ff7a3d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nf-hero .hero-text {
  max-width: 60ch;
  margin-top: 16px;
}

.nf-links .feature-grid {
  margin-top: 0;
}

.feature-grid .card h3 a {
  color: inherit;
  text-decoration: none;
}

.feature-grid .card h3 a:hover {
  color: var(--blue-deep);
  text-decoration: underline;
}

.footer-inner .footer-partner {
  margin: 0;
}

@media (max-width: 1000px) {
  .doc {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 32px;
  }

  .doc-toc {
    position: static;
    max-height: none;
  }

  .product-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .legal-content ul.adv-grid,
  .legal-content ol.eco-list {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 24px;
  }

  .page-hero .wrap {
    padding: 40px 0 44px;
  }
}

.button-wa-light {
  color: var(--blue-deep);
  background: #fff;
}

.button-wa-light:hover {
  background: #eaf1ff;
}

.legal-content a.button {
  text-decoration: none;
}

.legal-content a.button-ghost,
.cta-band a.button-ghost {
  color: #fff;
}

.legal-content a.button-wa-light,
.cta-band a.button-wa-light {
  color: var(--blue-deep);
  font-weight: 600;
}
