:root {
  --ink: #2f2834;
  --ink-soft: #4c4350;
  --orange: #df7000;
  --paper: #fffdf9;
  --mist: #f4f3ef;
  --line: rgba(47, 40, 52, 0.14);
  --muted: #726a75;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Cabin", sans-serif; font-size: 17px; line-height: 1.7; }
a { color: inherit; }
.container { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
.legal-header { background: var(--ink); }
.legal-nav { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.legal-nav img { display: block; width: 150px; }
.back-link { color: rgba(255, 255, 255, 0.78); text-decoration: none; font-size: 15px; font-weight: 600; }
.back-link:hover { color: white; }
.legal-hero { padding: 92px 0 70px; background: var(--mist); }
.legal-hero h1 { max-width: 780px; margin: 0 0 18px; font-family: "Roboto Slab", serif; font-size: clamp(44px, 6vw, 72px); line-height: 1.08; }
.legal-hero p { max-width: 680px; margin: 0; color: var(--muted); font-size: 19px; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 700px); gap: 80px; padding-top: 76px; padding-bottom: 110px; }
.legal-toc { position: sticky; top: 28px; align-self: start; }
.legal-toc strong { display: block; margin-bottom: 12px; font-size: 13px; text-transform: uppercase; }
.legal-toc a { display: block; padding: 5px 0; color: var(--muted); text-decoration: none; font-size: 14px; }
.legal-toc a:hover { color: var(--ink); }
.legal-content h2 { margin: 54px 0 14px; font-family: "Roboto Slab", serif; font-size: 30px; line-height: 1.25; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin: 28px 0 8px; font-size: 20px; }
.legal-content p, .legal-content li { color: var(--ink-soft); }
.legal-content ul, .legal-content ol { padding-left: 22px; }
.legal-content li { margin: 7px 0; }
.legal-content a { color: #8d4700; text-underline-offset: 3px; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.legal-content th, .legal-content td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-content th { color: var(--ink); }
.draft-note { margin-bottom: 34px; padding: 18px 20px; background: #fff2df; color: #70410d; font-size: 15px; }
.contact-box { margin-top: 42px; padding: 26px; background: var(--mist); }
.legal-footer { padding: 44px 0; color: rgba(255, 255, 255, 0.64); background: #221d26; }
.legal-footer-inner { display: flex; justify-content: space-between; gap: 30px; }
.legal-footer p { margin: 0; font-size: 14px; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; }
.legal-links a { color: inherit; text-decoration: none; font-size: 14px; }
.legal-links a:hover { color: white; }

@media (max-width: 760px) {
  .container { width: calc(100% - 30px); }
  .legal-hero { padding: 66px 0 52px; }
  .legal-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 52px; padding-bottom: 76px; }
  .legal-toc { position: static; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .legal-content table, .legal-content tbody, .legal-content tr, .legal-content th, .legal-content td { display: block; }
  .legal-content thead { display: none; }
  .legal-content tr { margin-bottom: 22px; }
  .legal-content td { padding: 8px 0; }
  .legal-footer-inner { flex-direction: column; }
  .legal-links { justify-content: flex-start; }
}