:root {
  --ink: #11110f;
  --muted: #686861;
  --paper: #f2f2ee;
  --paper-soft: #f8f8f5;
  --line: #d8d8d1;
  --orange: #ff5c16;
  --page: clamp(22px, 5vw, 76px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.page-pad { padding-left: var(--page); padding-right: var(--page); }

.legal-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.legal-header.is-scrolled {
  background: rgba(242, 242, 238, .88);
  border-color: rgba(17, 17, 15, .1);
  backdrop-filter: blur(18px);
}
.legal-nav { height: 82px; display: flex; align-items: center; gap: 36px; }
.legal-brand { display: inline-flex; align-items: center; text-decoration: none; font-size: 29px; font-weight: 300; letter-spacing: -.05em; }
.legal-brand img { width: 34px; height: 34px; object-fit: contain; margin-right: -2px; }
.legal-nav nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.legal-nav nav a, .legal-contact { position: relative; font-size: 12px; font-weight: 500; text-decoration: none; }
.legal-nav nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: var(--orange); transition: right .2s ease; }
.legal-nav nav a:hover::after, .legal-nav nav a[aria-current="page"]::after { right: 0; }
.legal-contact { border: 1px solid var(--ink); border-radius: 999px; padding: 12px 18px; transition: color .2s ease, background .2s ease; }
.legal-contact:hover { background: var(--ink); color: white; }

.legal-hero { min-height: 590px; padding-top: 160px; padding-bottom: 76px; display: flex; flex-direction: column; justify-content: flex-end; }
.legal-eyebrow { margin: 0 0 34px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.legal-hero h1 { max-width: 1050px; margin: 0; font-size: clamp(58px, 9vw, 132px); font-weight: 300; line-height: .84; letter-spacing: -.078em; }
.legal-hero-bottom { display: grid; grid-template-columns: minmax(0, 650px) auto; justify-content: space-between; align-items: end; gap: 40px; margin-top: 56px; }
.legal-hero-bottom > p { margin: 0; color: #4d4d47; font-size: clamp(16px, 1.4vw, 20px); font-weight: 300; line-height: 1.6; }
.legal-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; min-width: 290px; }
.legal-meta span { display: block; margin-bottom: 7px; color: #8a8a82; font-size: 9px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.legal-meta strong { font-size: 12px; font-weight: 500; }

.legal-summary { padding-top: 74px; padding-bottom: 78px; background: var(--ink); color: white; }
.summary-heading { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; padding-bottom: 52px; border-bottom: 1px solid #33332f; }
.summary-heading p { margin: 8px 0 0; color: #888882; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.summary-heading h2 { max-width: 760px; margin: 0; font-size: clamp(32px, 4.5vw, 64px); font-weight: 300; line-height: 1.02; letter-spacing: -.055em; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.summary-item { padding: 42px clamp(20px, 3vw, 50px) 4px 0; border-right: 1px solid #33332f; }
.summary-item + .summary-item { padding-left: clamp(20px, 3vw, 50px); }
.summary-item:last-child { border-right: 0; }
.summary-item b { color: var(--orange); font-size: 10px; letter-spacing: .15em; }
.summary-item h3 { margin: 20px 0 12px; font-size: 21px; font-weight: 400; letter-spacing: -.025em; }
.summary-item p { margin: 0; color: #9d9d96; font-size: 13px; line-height: 1.75; }

.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 780px); justify-content: space-between; gap: clamp(50px, 9vw, 150px); padding-top: 105px; padding-bottom: 130px; }
.legal-toc { align-self: start; position: sticky; top: 120px; }
.legal-toc > p { margin: 0 0 24px; color: #929289; font-size: 9px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.toc-links { display: grid; }
.toc-links a { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 9px 0; color: #77776f; font-size: 11px; line-height: 1.25; text-decoration: none; transition: color .2s ease, transform .2s ease; }
.toc-links a span { color: #aaa9a1; font-size: 9px; }
.toc-links a:hover, .toc-links a.active { color: var(--ink); transform: translateX(4px); }
.toc-links a.active span { color: var(--orange); }
.toc-contact { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.toc-contact span { display: block; margin-bottom: 7px; color: #929289; font-size: 9px; text-transform: uppercase; letter-spacing: .13em; }
.toc-contact a { font-size: 11px; text-decoration: none; border-bottom: 1px solid #aaa; }

.legal-content { min-width: 0; }
.legal-content section { scroll-margin-top: 125px; padding: 0 0 62px; margin-bottom: 62px; border-bottom: 1px solid var(--line); }
.legal-content section:last-child { margin-bottom: 0; border-bottom: 0; }
.section-number { display: block; margin-bottom: 20px; color: var(--orange); font-size: 10px; font-weight: 600; letter-spacing: .18em; }
.legal-content h2 { margin: 0 0 26px; font-size: clamp(29px, 3vw, 42px); font-weight: 400; line-height: 1.06; letter-spacing: -.045em; }
.legal-content h3 { margin: 30px 0 10px; font-size: 16px; font-weight: 600; }
.legal-content p, .legal-content li { color: #4f4f49; font-size: 14px; line-height: 1.85; }
.legal-content p { margin: 0 0 18px; }
.legal-content ul { margin: 20px 0 20px; padding: 0; list-style: none; }
.legal-content li { position: relative; padding-left: 24px; margin: 9px 0; }
.legal-content li::before { content: ""; position: absolute; top: .88em; left: 2px; width: 10px; height: 1px; background: var(--orange); }
.legal-content a { text-underline-offset: 3px; }
.legal-note { padding: 22px 24px; margin-top: 25px; background: #e9e9e3; border-left: 2px solid var(--orange); }
.legal-note p { margin: 0; color: #3d3d38; font-size: 12px; }

footer { position: relative; z-index: 5; background: #000; color: white; }
.footer-main { min-height: 300px; display: grid; grid-template-columns: 1.1fr 1.5fr 1fr; gap: 8vw; align-items: start; padding-top: 70px; padding-bottom: 60px; }
.footer-logo { display: block; width: 142px; height: 42px; }
.footer-logo img { width: 100%; height: 100%; object-fit: contain; }
.footer-main > p { margin: 5px 0 0; max-width: 440px; color: #7d7d7d; line-height: 1.7; font-size: 14px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; }
.footer-links a { text-decoration: none; font-size: 13px; color: #d2d2d2; }
.footer-base { border-top: 1px solid #242424; min-height: 80px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; color: #606060; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.footer-domain { color: #606060; text-align: center; text-decoration: none; }
.footer-base > div { display: flex; justify-content: flex-end; gap: 24px; }
.footer-base a { color: #606060; text-decoration: none; }

@media (max-width: 900px) {
  .legal-nav { gap: 22px; }
  .legal-nav nav { gap: 20px; }
  .legal-hero-bottom { grid-template-columns: 1fr; }
  .summary-heading { grid-template-columns: 1fr; gap: 20px; }
  .legal-layout { grid-template-columns: 1fr; padding-top: 55px; gap: 60px; }
  .legal-toc { position: static; overflow: hidden; }
  .toc-links { display: flex; overflow-x: auto; gap: 12px; padding-bottom: 10px; scrollbar-width: none; }
  .toc-links::-webkit-scrollbar { display: none; }
  .toc-links a { flex: 0 0 auto; display: flex; min-width: max-content; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; }
  .toc-links a:hover, .toc-links a.active { color: white; background: var(--ink); border-color: var(--ink); transform: none; }
  .toc-contact { display: none; }
  .footer-main { grid-template-columns: 1fr 1.5fr; }
  .footer-links { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .legal-header.is-scrolled { background: rgba(242, 242, 238, .95); }
  .legal-nav { height: 66px; gap: 18px; }
  .legal-brand { font-size: 24px; }
  .legal-brand img { width: 29px; height: 29px; }
  .legal-nav nav { gap: 15px; }
  .legal-nav nav a:first-child { display: none; }
  .legal-contact { display: none; }
  .legal-hero { min-height: 540px; padding-top: 120px; padding-bottom: 55px; }
  .legal-hero h1 { font-size: clamp(55px, 18vw, 82px); line-height: .88; }
  .legal-hero-bottom { margin-top: 38px; gap: 30px; }
  .legal-meta { min-width: 0; gap: 20px; }
  .legal-summary { padding-top: 52px; padding-bottom: 54px; }
  .summary-heading { padding-bottom: 38px; }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-item, .summary-item + .summary-item { padding: 30px 0; border-right: 0; border-bottom: 1px solid #33332f; }
  .summary-item:last-child { border-bottom: 0; padding-bottom: 0; }
  .legal-layout { padding-bottom: 80px; }
  .legal-content section { padding-bottom: 44px; margin-bottom: 44px; }
  .legal-content p, .legal-content li { font-size: 13px; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
  .footer-links { grid-column: auto; }
  .footer-base { grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 24px; padding-bottom: 24px; }
  .footer-domain { text-align: right; }
  .footer-base > div { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
