@font-face {
  font-family: Manrope;
  src: url("assets/fonts/Manrope-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f8f7f4;
  --surface: #fff;
  --ink: #2c3954;
  --muted: #596983;
  --border: #e2e6ed;
  --accent: #96b3f2;
  font-family: Manrope, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
  border-radius: 4px;
}
.legal-header, .legal-footer {
  width: min(1180px, calc(100% - 100px));
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.legal-header { min-height: 102px; padding-block: 12px; }
.legal-brand { display: flex; flex: 0 0 auto; align-items: center; gap: 7.2px; }
.legal-brand picture, .legal-brand picture img { display: block; width: 70.2px; height: 70.2px; }
.legal-brand > img { display: block; width: 106.92px; height: auto; }
.legal-back { display: inline-flex; align-items: center; gap: 9px; padding-block: 12px; font-size: 15px; font-weight: 650; text-decoration: none; }
.legal-back svg { width: 20px; height: 20px; flex: 0 0 auto; }
.legal-document {
  width: min(960px, calc(100% - 100px));
  margin: 28px auto 0;
  padding: 52px 56px 56px;
  border-radius: 32px;
  background: var(--surface);
}
.legal-eyebrow { margin: 0 0 18px; color: var(--muted); font-size: 13px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
h1 { margin: 0; font-size: 40px; font-weight: 750; line-height: 1.2; letter-spacing: -.035em; text-wrap: balance; }
.legal-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 24px; color: var(--muted); font-size: 15px; }
.legal-meta p { margin: 0; }
.legal-toc { margin: 36px 0 42px; padding-block: 20px; border-block: 1px solid var(--border); }
.legal-toc summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 18px; font-weight: 700; cursor: pointer; list-style: none; }
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc summary::after { content: "+"; color: var(--muted); font-size: 24px; font-weight: 500; }
.legal-toc[open] summary::after { content: "−"; }
.legal-toc nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; padding-top: 22px; }
.legal-toc a { font-size: 15px; line-height: 1.5; text-decoration: none; }
.legal-section { margin-top: 42px; scroll-margin-top: 28px; }
.legal-section h2 { margin: 0 0 22px; font-size: 27px; font-weight: 750; line-height: 1.3; letter-spacing: -.025em; text-wrap: balance; }
.legal-section p { margin: 0 0 18px; font-size: 17px; line-height: 1.75; overflow-wrap: anywhere; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-policy h1 { font-size: 32px; line-height: 1.3; overflow-wrap: anywhere; }
.legal-policy h2 { overflow-wrap: anywhere; }
.legal-section h3 { margin: 32px 0 18px; font-size: 20px; line-height: 1.5; font-weight: 750; }
.legal-table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 24px 0; font-size: 16px; line-height: 1.65; }
.legal-table th, .legal-table td { padding: 16px; border: 1px solid var(--border); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.legal-table th { background: #edf2fc; font-weight: 750; }
.legal-footer { align-items: flex-start; padding-block: 36px 48px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.legal-footer p { margin: 0; }
.legal-footer a { text-decoration: none; }
.legal-toc a:hover, .legal-footer a:hover { text-decoration: underline; }
.skip-link { position: absolute; top: 8px; left: 16px; z-index: 2; padding: 12px 16px; background: var(--surface); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

@media (max-width: 767px) {
  .legal-header, .legal-footer { width: calc(100% - 36px); gap: 16px; }
  .legal-header { min-height: 84px; }
  .legal-brand { gap: 6px; }
  .legal-brand picture, .legal-brand picture img { width: 57px; height: 57px; }
  .legal-brand > img { width: 87px; }
  .legal-back { gap: 6px; font-size: 13px; }
  .legal-back svg { width: 17px; height: 17px; }
  .legal-document { width: calc(100% - 24px); margin-top: 12px; padding: 28px 20px 32px; border-radius: 24px; }
  .legal-eyebrow { font-size: 11px; margin-bottom: 14px; }
  h1 { font-size: clamp(26px, 7.2vw, 36px); line-height: 1.23; }
  .legal-meta { margin-top: 20px; gap: 8px; flex-direction: column; font-size: 13px; }
  .legal-toc { margin: 28px 0 32px; padding-block: 16px; }
  .legal-toc nav { grid-template-columns: 1fr; gap: 14px; }
  .legal-section { margin-top: 32px; scroll-margin-top: 20px; }
  .legal-section h2 { font-size: 22px; margin-bottom: 18px; }
  .legal-section p { font-size: 16px; line-height: 1.7; margin-bottom: 16px; }
  .legal-policy h1 { font-size: clamp(20px, 6vw, 28px); }
  .legal-section h3 { font-size: 18px; margin-top: 28px; }
  .legal-table { font-size: 14px; }
  .legal-table th, .legal-table td { padding: 10px; }
  .legal-footer { flex-direction: column; padding-block: 28px 32px; }
}

@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
@media print {
  :root { color: #000; background: #fff; }
  .legal-header, .legal-toc, .legal-footer, .skip-link, .legal-eyebrow { display: none; }
  .legal-document { width: auto; margin: 0; padding: 0; }
  h1 { font-size: 24pt; }
  .legal-section h2 { font-size: 15pt; break-after: avoid; }
  .legal-section p { font-size: 10pt; orphans: 3; widows: 3; }
  .legal-meta { color: #000; }
}
