/* Shared styles for legal pages — terms, privacy. */
:root {
  color-scheme: light;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "ss01" 1, "ss03" 1, "cv11" 1;
  font-variant-ligatures: common-ligatures contextual;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #FAFAF7;
  color: #1A1A18;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 450;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.font-display { font-family: "Geist", "Inter", system-ui, sans-serif; font-weight: 700; letter-spacing: -0.035em; text-transform: uppercase; }
.font-mono    { font-family: "JetBrains Mono", ui-monospace, monospace; font-feature-settings: "tnum" 1, "zero" 1; }
.eyebrow      { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; }

.legal-wrap { max-width: 760px; margin: 0 auto; padding: 64px 28px 96px; }
.legal-nav  { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; max-width: 1200px; margin: 0 auto; }
.legal-nav a.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #1A1A18; }
.legal-nav .mark { width: 22px; height: 22px; background: #1A1A18; display: grid; place-items: center; border-radius: 3px; }
.legal-nav .mark > div { width: 9px; height: 9px; background: #F5B800; transform: rotate(45deg); }
.legal-nav .brand-name { font-family: "Geist", "Inter", system-ui, sans-serif; font-weight: 700; letter-spacing: -0.025em; font-size: 18px; text-transform: uppercase; }
.legal-nav .tag { font-family: "Geist", "Inter", system-ui, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: #1A1A18; margin-left: 8px; padding-left: 10px; border-left: 1px solid rgba(26,26,24,0.3); }
.legal-nav .back { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #5C5C56; text-decoration: none; font-weight: 600; }
.legal-nav .back:hover { color: #7A5A00; }

h1.legal-title { font-family: "Geist", "Inter", system-ui, sans-serif; font-weight: 700; letter-spacing: -0.04em; text-transform: uppercase; font-size: 60px; line-height: 1.04; margin: 28px 0 8px; }
.legal-meta { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #5C5C56; margin-bottom: 36px; font-weight: 600; }
.legal-rule { height: 1px; background: #E1E1D8; margin: 28px 0; border: 0; }

article h2 { font-family: "Geist", "Inter", system-ui, sans-serif; font-weight: 700; letter-spacing: -0.03em; text-transform: uppercase; font-size: 26px; line-height: 1.1; margin: 44px 0 12px; }
article h3 { font-family: "Inter", system-ui, sans-serif; font-weight: 600; font-size: 16px; letter-spacing: -0.012em; margin: 24px 0 8px; }
article p, article li { color: #1A1A18; }
article p { margin: 12px 0; }
article ul, article ol { padding-left: 22px; margin: 12px 0; }
article li { margin: 6px 0; }
article strong { font-weight: 700; }
article a { color: #7A5A00; text-decoration: underline; text-underline-offset: 3px; }
article a:hover { color: #1A1A18; }
.section-num { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.22em; color: #7A5A00; text-transform: uppercase; font-weight: 600; }

.legal-foot { border-top: 1px solid #E1E1D8; margin-top: 64px; padding-top: 24px; font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #5C5C56; font-weight: 600; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.legal-foot a { color: #5C5C56; text-decoration: none; }
.legal-foot a:hover { color: #7A5A00; }

@media (max-width: 640px) {
  h1.legal-title { font-size: 40px; }
  article h2 { font-size: 22px; }
  .legal-wrap { padding: 40px 20px 72px; }
  .legal-nav { padding: 18px 20px; }
}
