@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #f4e9ec;
  --surface: #fffafa;
  --border: #e2ccce;
  --ink: #28141d;
  --muted: #6e4f5c;
  --faint: #967382;
  --purple: #af2a98;
  --purple-dark: #76205f;
  --yellow: #fbc035;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.legal-header, .legal-shell, .legal-footer { width: min(980px, calc(100% - 48px)); margin: 0 auto; }
.legal-header { display: flex; align-items: center; justify-content: space-between; min-height: 92px; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 700; letter-spacing: -0.04em; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.legal-header .brand { font-size: 44px; }
.legal-header .brand img { width: 70px; height: 70px; }
.legal-footer .brand { font-size: 13px; }
.legal-footer .brand img { width: 29px; height: 29px; }
.brand span { background: linear-gradient(105deg, var(--purple) 5%, #d544a6 52%, var(--yellow) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.back-link { color: var(--purple-dark); font-size: 13px; font-weight: 600; text-decoration: none; }
.back-link:hover, .legal-footer a:hover { color: var(--purple); }
.legal-shell { padding: 72px 0 92px; }
.legal-document { max-width: 760px; margin: 0 auto; }
.legal-document h1, .legal-document h2, .legal-document h3 { color: var(--ink); font-family: var(--serif); font-weight: 400; line-height: .98; }
.legal-document h1 { margin: 0 0 14px; font-size: clamp(52px, 8vw, 86px); letter-spacing: -.035em; }
.contact-kicker { margin: 0 0 20px !important; color: var(--purple-dark) !important; font-size: 13px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.contact-email { margin-top: 32px !important; font-size: clamp(24px, 4vw, 38px) !important; line-height: 1.2 !important; }
.contact-email a { color: var(--purple-dark); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.legal-document h2 { margin: 48px 0 16px; padding-top: 22px; border-top: 1px solid var(--border); font-size: clamp(32px, 5vw, 48px); }
.legal-document h3 { margin: 32px 0 12px; font-size: 30px; }
.legal-document p, .legal-document li { color: var(--muted); font-size: 16px; line-height: 1.75; }
.legal-document p { margin: 0 0 18px; }
.legal-document ul { margin: 0 0 22px; padding-left: 24px; }
.legal-document li { margin: 6px 0; padding-left: 5px; }
.legal-document strong { color: var(--ink); font-weight: 700; }
.legal-document a { color: var(--purple-dark); }
.legal-document code { padding: 2px 5px; border-radius: 4px; background: #f1e5e8; color: var(--ink); }
.legal-table-wrap { overflow-x: auto; margin: 22px 0 28px; }
.legal-document table { width: 100%; min-width: 680px; border-collapse: collapse; background: var(--surface); font-size: 14px; }
.legal-document th, .legal-document td { padding: 13px 14px; border: 1px solid var(--border); text-align: left; vertical-align: top; line-height: 1.55; }
.legal-document th { color: var(--ink); background: #f1e5e8; font-weight: 700; }
.legal-document td { color: var(--muted); }
.legal-fallback { margin: 0; color: var(--muted); white-space: pre-wrap; font: 16px/1.75 var(--sans); }
.legal-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; min-height: 86px; border-top: 1px solid var(--border); color: var(--faint); font-size: 12px; }
.legal-footer a { color: var(--muted); text-decoration: none; }
.legal-footer .legal-links { display: flex; align-items: center; justify-self: center; gap: 18px; white-space: nowrap; }
.legal-footer > span { justify-self: end; margin-left: 0; text-align: right; }
@media (max-width: 620px) {
  .legal-header, .legal-shell, .legal-footer { width: min(100% - 32px, 980px); }
  .legal-header { min-height: 76px; }
  .legal-shell { padding: 48px 0 64px; }
  .legal-footer { display: flex; align-items: flex-start; flex-direction: column; gap: 10px; padding: 22px 0; }
  .legal-footer .legal-links { align-items: flex-start; flex-wrap: wrap; justify-self: auto; }
  .legal-footer > span { margin-left: 0; text-align: left; }
}
