/* ══════════════════════════════════════════════════════════════
   STUDIO — Legal pages (privacy.html, cookies.html)
   Inherits all tokens from style.css
══════════════════════════════════════════════════════════════ */

/* ── Layout ── */
.legal-header {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--sp4) var(--sp4) var(--sp4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.legal-page {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--sp6) var(--sp4) 80px;
}

/* ── Back link ── */
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-mid);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.15s;
}
.legal-back:hover {
  color: var(--text-hi);
}

/* ── Page heading ── */
.legal-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: var(--sp2);
  margin-top: 0;
}
.legal-title {
  font-size: clamp(52px, 10vw, 88px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.88;
  color: var(--text-hi);
  margin-bottom: var(--sp2);
  text-transform: uppercase;
  font-stretch: 125%;
  font-variation-settings:
    "opsz" 100,
    "wdth" 125;
}
.legal-updated {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: var(--sp6);
  letter-spacing: 0.02em;
}
.legal-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--sp5) 0;
}

/* ── Sections ── */
.legal-section {
  margin-bottom: var(--sp5);
}

.legal-section h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-hi);
  margin-bottom: var(--sp2);
  line-height: 1.2;
}
.legal-section p,
.legal-section ul {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: var(--sp2);
}
.legal-section ul {
  padding-left: 22px;
}
.legal-section ul li {
  margin-bottom: 10px;
}
.legal-section a {
  color: var(--text-hi);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-section strong {
  color: var(--text-hi);
  font-weight: 700;
}

html[dir="rtl"] .legal-section ul {
  padding-left: 0;
  padding-right: 22px;
}

/* ── Cookie table ── */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  margin-bottom: var(--sp2);
  border: 1px solid var(--border);
}
.cookie-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-hi);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
html[dir="rtl"] .cookie-table th {
  text-align: right;
}
.cookie-table td {
  padding: 14px 16px;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.6;
}
.cookie-table tr:last-child td {
  border-bottom: none;
}
.cookie-table tr:nth-child(even) td {
  background: var(--surface-2);
}

/* ── Responsive ── */
@media (max-width: 520px) {
  .legal-header {
    padding: var(--sp3) var(--sp2) 0;
  }
  .legal-page {
    padding: var(--sp4) var(--sp2) 60px;
  }
  .cookie-table {
    font-size: 13px;
  }
  .cookie-table th,
  .cookie-table td {
    padding: 10px 12px;
  }
}
