@import url('./tokens.css');

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font: 400 var(--text-md)/1.6 var(--font-ui); -webkit-font-smoothing: antialiased; }
a { color: #c7bdff; text-underline-offset: 3px; }
a:hover { color: #e0daff; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }
.legal-shell { width: min(820px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 64px; }
.legal-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--color-border); }
.legal-brand { display: grid; gap: 3px; color: var(--color-text); text-decoration: none; }
.legal-brand strong { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.legal-brand span { color: var(--color-text-muted); font-size: var(--text-sm); }
.language-links { display: flex; gap: 6px; }
.language-links a { min-width: 40px; padding: 6px 9px; color: var(--color-text-muted); border: 1px solid var(--color-border); border-radius: var(--radius-md); text-align: center; text-decoration: none; }
.language-links a[aria-current="page"] { color: #e2ddff; background: var(--color-accent-soft); border-color: var(--color-accent-border); }
.legal-navigation { position: sticky; top: 0; z-index: 2; display: flex; gap: 6px; padding: 12px 0; overflow-x: auto; background: color-mix(in srgb, var(--color-bg) 94%, transparent); backdrop-filter: blur(12px); }
.legal-navigation a { flex: none; padding: 7px 10px; color: var(--color-text-muted); border-radius: var(--radius-md); text-decoration: none; }
.legal-navigation a:hover { color: var(--color-text); background: rgba(255, 255, 255, .04); }
.legal-section { padding: 34px 0; border-top: 1px solid var(--color-border); }
.legal-section:first-of-type { border-top: 0; }
h1 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.025em; }
h2 { margin: 0 0 20px; font-size: 21px; font-weight: 600; letter-spacing: -.015em; }
h3 { margin: 28px 0 8px; font-size: 14px; font-weight: 600; }
p, ul, dl { max-width: 72ch; }
p { margin: 8px 0 14px; color: var(--color-text-muted); }
ul { padding-left: 20px; color: var(--color-text-muted); }
li + li { margin-top: 5px; }
dl { display: grid; grid-template-columns: minmax(130px, 180px) 1fr; gap: 8px 20px; margin: 0; }
dt { color: var(--color-text-faint); }
dd { margin: 0; }
.legal-notice { padding: 12px 14px; background: rgba(255, 255, 255, .025); border-left: 2px solid var(--color-accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.legal-footer { padding-top: 24px; color: var(--color-text-faint); border-top: 1px solid var(--color-border); font-size: var(--text-xs); }

@media (max-width: 560px) {
  .legal-shell { width: min(100% - 24px, 820px); padding-top: 20px; }
  .legal-header { align-items: flex-start; }
  h1 { font-size: 24px; }
  dl { grid-template-columns: 1fr; gap: 2px; }
  dd + dt { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
