/* Legal pages: aviso legal, privacidad y cookies. A plain reading layout in the
   site's type and colours: a short hero, tabs between the three documents, and
   the text on a white sheet with a sticky index beside it on wide screens. */
.legal-hero { padding-block: 80px 70px; }
.legal-hero h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); font-weight: 750; letter-spacing: -.055em; line-height: 1.05; margin-bottom: 26px; }
.legal-hero h1 .handwritten { color: var(--pink); letter-spacing: -.06em; }
.legal-lead { font-size: 19px; line-height: 1.6; max-width: 640px; }
.legal-updated { font-size: 13px; color: #606060; margin-top: 18px; }

.legal-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.legal-tabs a { padding: 9px 18px; border: 1px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.legal-tabs a:hover { background: var(--ink); color: #fff; }
.legal-tabs a[aria-current=page] { background: var(--pink); border-color: var(--pink); color: #fff; }

.legal-body { background: #fff; padding-block: 90px calc(110px + var(--curve-h)); --curve-fill: #fff; }
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: 70px; justify-content: center; }
.legal-index { position: sticky; top: 140px; align-self: start; font-size: 14px; }
.legal-index p { font-size: 11px; font-weight: 600; letter-spacing: .14em; margin-bottom: 14px; }
.legal-index ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.legal-index a { display: block; padding: 6px 0 6px 16px; color: #555; line-height: 1.4; transition: color .2s; }
.legal-index a:hover { color: var(--pink-dark); }

.legal-text { font-size: 16.5px; line-height: 1.75; }
.legal-text section + section { margin-top: 54px; }
.legal-text h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -.035em; margin-bottom: 18px; }
.legal-text h3 { font-size: 18px; margin: 26px 0 8px; }
.legal-text p + p, .legal-text p + ul, .legal-text ul + p, .legal-text .legal-table-wrap + p { margin-top: 14px; }
.legal-text ul { margin: 14px 0 0; padding-left: 22px; }
.legal-text li + li { margin-top: 6px; }
.legal-text a:not(.button) { color: var(--pink-dark); text-decoration: underline; text-underline-offset: 3px; }
.legal-text strong { font-weight: 650; }

/* Data the owner still has to fill in, impossible to miss before publishing. */
.legal-pending { background: var(--note-yellow); color: var(--ink); padding: 1px 6px; border-radius: 3px; font-weight: 600; }

.legal-card { margin-top: 18px; padding: 22px 24px; background: var(--pink-light); border-radius: 10px; }
.legal-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; margin: 0; }
.legal-card dt { font-weight: 650; }
.legal-card dd { margin: 0; }

.legal-table-wrap { margin-top: 18px; overflow-x: auto; }
.legal-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.legal-table th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; border-bottom: 2px solid var(--ink); }
.legal-table code { font-size: 13px; background: #f4f3f4; padding: 1px 5px; border-radius: 3px; white-space: nowrap; }

/* replica.js animates every h2 inside main word by word and hides it again when
   it leaves the screen. On a long legal text that gets in the way of reading,
   so the headings here stay put. */
.legal-text h2.replica-reveal-pending, .legal-text h2.replica-reveal { opacity: 1; animation: none; }
.legal-text h2.motion-ready .motion-word { opacity: 1; translate: none; animation: none; }

@media (max-width: 1000px) {
  .legal-layout { grid-template-columns: minmax(0, 760px); gap: 40px; }
  .legal-index { position: static; }
}
@media (max-width: 800px) {
  .legal-hero { padding-block: 50px 50px; }
  .legal-lead { font-size: 17px; }
  .legal-body { padding-block: 60px calc(75px + var(--curve-h)); }
}
@media (max-width: 480px) {
  .legal-text { font-size: 16px; }
  .legal-card dl { grid-template-columns: 1fr; gap: 2px; }
  .legal-card dd + dt { margin-top: 10px; }
  .legal-body { padding-block: 50px calc(60px + var(--curve-h)); }
}
