:root {
  color-scheme: light;
  --background: #f8f5f2;
  --surface: #ffffff;
  --text: #171717;
  --muted: #746f6b;
  --line: #e7e1dc;
  --accent: #c8522f;
  --shadow: 0 18px 45px rgb(50 35 24 / 8%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { background: var(--background); scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--background); }
a { color: inherit; }
[hidden] { display: none !important; }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 32px;
  border-bottom: 1px solid rgb(231 225 220 / 80%);
  background: rgb(248 245 242 / 92%);
  backdrop-filter: blur(18px);
}

.brand { font-size: 25px; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.document-nav { display: flex; gap: 24px; }
.document-nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
.document-nav a:hover, .document-nav a[aria-current="page"] { color: var(--accent); }

main { width: min(100% - 40px, 820px); min-height: calc(100vh - 152px); margin: 0 auto; }
.status-card { margin: 80px 0; color: var(--muted); text-align: center; }
.status-card.error { color: var(--accent); }

.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .14em; }
h1 { margin: 0; font-size: clamp(38px, 8vw, 68px); font-weight: 750; letter-spacing: -.045em; line-height: 1.08; }
.error-page { padding: clamp(96px, 17vh, 180px) 0 120px; }
.error-page p:last-child { margin-top: 24px; color: var(--muted); font-size: 19px; line-height: 1.7; }

.legal-document { padding: 74px 0 120px; }
.document-heading { padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.document-heading h1 { font-size: clamp(34px, 7vw, 56px); }
.language-switch { display: inline-flex; gap: 4px; margin-top: 30px; padding: 4px; border-radius: 999px; background: #ece7e3; }
.language-switch a { min-width: 78px; padding: 9px 15px; border-radius: 999px; color: var(--muted); font-size: 14px; text-align: center; text-decoration: none; }
.language-switch a[aria-current="true"] { color: var(--text); background: var(--surface); box-shadow: 0 2px 10px rgb(45 31 22 / 8%); }
.delete-account-action { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; margin-top: 32px; padding: 0 22px; border-radius: 999px; color: #fff; background: var(--accent); font-weight: 600; text-decoration: none; }
.delete-account-action:hover { filter: brightness(.94); }
.document-body { padding-top: 22px; }
.document-body .effective-date { margin: 16px 0 42px; color: var(--muted); font-size: 14px; }
.document-body h2 { margin: 52px 0 16px; font-size: 21px; line-height: 1.45; }
.document-body p { margin: 0; color: #393633; font-size: 16px; line-height: 1.9; white-space: pre-line; word-break: keep-all; overflow-wrap: anywhere; }

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  padding: 28px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
footer a { text-decoration: none; }
footer a:hover { color: var(--accent); }
.noscript { padding: 20px; text-align: center; }

@media (max-width: 640px) {
  .site-header { min-height: 64px; padding: 0 20px; }
  .brand { font-size: 22px; }
  .document-nav { gap: 14px; }
  .document-nav a { font-size: 12px; }
  main { width: min(100% - 32px, 820px); }
  .error-page { padding-top: 88px; }
  .legal-document { padding: 52px 0 88px; }
  .document-heading { padding-bottom: 36px; }
  .document-body h2 { margin-top: 42px; font-size: 19px; }
  .document-body p { font-size: 15px; line-height: 1.85; word-break: normal; }
  .language-switch { display: grid; grid-template-columns: repeat(2, 1fr); }
}

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