@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-display: swap; src: url("../fonts/CormorantGaramond-500-cyr.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-display: swap; src: url("../fonts/CormorantGaramond-500-lat.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url("../fonts/GolosText-400-all.ttf") format("truetype"); }
@font-face { font-family: "Golos Text"; font-weight: 500; font-display: swap; src: url("../fonts/GolosText-500-all.ttf") format("truetype"); }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url("../fonts/GolosText-600-all.ttf") format("truetype"); }

:root {
  --paper: #fbe3e1;
  --surface: #fff7f5;
  --rule: rgba(107, 31, 46, 0.18);
  --wine: #6b1f2e;
  --night: #2e0f16;
  --ink: #3a2a26;
  --dim: #6a5a55;
  --gold: #a4854b;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-text: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-text); }
a { color: var(--wine); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.legal-header {
  border-bottom: 1px solid var(--rule);
  background: rgba(251, 227, 225, 0.96);
}
.legal-header__inner,
.legal-main,
.legal-footer__inner { width: min(calc(100% - 48px), 1040px); margin-inline: auto; }
.legal-header__inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.legal-logo { display: block; }
.legal-logo img { display: block; width: auto; height: 54px; }
.legal-back { font-size: 0.9rem; font-weight: 500; text-decoration: none; }
.legal-back:hover { text-decoration: underline; }

.legal-main { padding-block: clamp(64px, 9vw, 112px); }
.legal-hero { max-width: 780px; padding-bottom: clamp(42px, 6vw, 72px); }
.legal-kicker { margin: 0 0 14px; color: var(--gold); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.legal-title { margin: 0; color: var(--night); font: 500 clamp(3rem, 8vw, 6.2rem)/0.9 var(--font-display); letter-spacing: -0.03em; text-wrap: balance; }
.legal-intro { max-width: 660px; margin: 24px 0 0; color: var(--dim); font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.6; }
.legal-meta { margin: 20px 0 0; color: var(--dim); font-size: 0.875rem; }

.legal-grid { display: grid; grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr); gap: clamp(36px, 8vw, 100px); align-items: start; }
.legal-toc { position: sticky; top: 28px; padding: 20px 0; border-block: 1px solid var(--rule); }
.legal-toc p { margin: 0 0 12px; color: var(--gold); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.legal-toc a { display: block; padding: 7px 0; color: var(--dim); font-size: 0.85rem; text-decoration: none; }
.legal-toc a:hover { color: var(--wine); }

.legal-content { min-width: 0; }
.legal-section { padding: 0 0 clamp(42px, 6vw, 68px); scroll-margin-top: 24px; }
.legal-section + .legal-section { padding-top: clamp(42px, 6vw, 68px); border-top: 1px solid var(--rule); }
.legal-section h2 { margin: 0 0 20px; color: var(--night); font: 500 clamp(2rem, 4vw, 3rem)/1 var(--font-display); }
.legal-section h3 { margin: 30px 0 10px; color: var(--night); font-size: 1rem; }
.legal-section p,
.legal-section li { font-size: 1rem; line-height: 1.7; }
.legal-section p { margin: 0 0 16px; }
.legal-section ul { margin: 0 0 20px; padding-left: 22px; }
.legal-section li + li { margin-top: 8px; }
.legal-note { padding: 18px 20px; border-left: 3px solid var(--gold); background: var(--surface); }

.legal-table-wrap { width: 100%; margin: 22px 0; overflow-x: auto; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); }
.legal-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.legal-table th,
.legal-table td { padding: 14px 16px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; font-size: 0.86rem; line-height: 1.5; }
.legal-table th { color: var(--night); background: rgba(107, 31, 46, 0.05); font-size: 0.76rem; letter-spacing: 0.04em; text-transform: uppercase; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table code { color: var(--night); font-size: 0.84rem; overflow-wrap: anywhere; }
.legal-action {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px;
  border: 1px solid var(--wine); border-radius: 999px; background: var(--wine); color: var(--surface); cursor: pointer;
  font: 500 0.9rem/1 var(--font-text);
}
.legal-action:hover { background: #7e2638; }

.legal-footer { padding-block: 28px; color: rgba(255, 247, 245, 0.76); background: var(--night); }
.legal-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.legal-footer p { margin: 0; font-size: 0.82rem; }
.legal-footer nav { display: flex; flex-wrap: wrap; gap: 12px 22px; justify-content: flex-end; }
.legal-footer a,
.legal-footer button { padding: 0; border: 0; background: none; color: inherit; cursor: pointer; font: 500 0.82rem/1.4 var(--font-text); text-decoration: none; }
.legal-footer a:hover,
.legal-footer button:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 760px) {
  .legal-header__inner,
  .legal-main,
  .legal-footer__inner { width: min(calc(100% - 32px), 1040px); }
  .legal-header__inner { min-height: 76px; }
  .legal-logo img { height: 44px; }
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .legal-footer__inner { align-items: flex-start; flex-direction: column; }
  .legal-footer nav { justify-content: flex-start; }
}

@media print {
  .legal-header, .legal-footer, .legal-toc, .legal-action, .lw-consent { display: none !important; }
  body { background: #fff; }
  .legal-main { width: 100%; padding: 0; }
  .legal-grid { display: block; }
  .legal-section { break-inside: avoid; }
}
