/* Shared styling for the legal pages (/terms, /privacy).
   Kept in one file so the four language variants cannot drift apart visually.
   Tokens mirror the landing page. */
:root {
  color-scheme: dark;
  --bg: #08090a;
  --surface: #101214;
  --text: #e8ebef;
  --muted: #9aa2ad;
  --subtle: #69717c;
  --line: rgba(255, 255, 255, .09);
  --line-soft: rgba(255, 255, 255, .06);
  --accent: #2aabee;
  --accent-hover: #45b8f1;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

.container { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 10;
  padding: 10px 14px; border-radius: 10px;
  background: var(--accent); color: #041018;
  text-decoration: none; transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); background: rgba(8, 9, 10, .9); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 650;
}
.brand-mark {
  display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 8px; background: var(--accent); color: #041018;
  font-weight: 700; font-size: 15px;
}

/* Language switcher: two links, current one marked with aria-current */
.lang-switch { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; }
.lang-switch a {
  padding: 5px 11px; border-radius: 7px;
  color: var(--muted); text-decoration: none;
  font: 600 13px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .04em;
}
.lang-switch a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.lang-switch a[aria-current="true"] { background: var(--accent); color: #041018; }

main { padding: 56px 0 72px; }

h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 38px); line-height: 1.2; letter-spacing: -.02em; }
.updated { margin: 0 0 8px; color: var(--subtle); font-size: 14px; }
.lead { margin: 0 0 36px; color: var(--muted); font-size: 17px; }

h2 {
  margin: 40px 0 12px; font-size: 20px; letter-spacing: -.01em;
  padding-top: 20px; border-top: 1px solid var(--line-soft);
}
h2:first-of-type { border-top: 0; padding-top: 0; }
h3 { margin: 24px 0 8px; font-size: 16px; }

p { margin: 0 0 14px; color: var(--muted); }
ul, ol { margin: 0 0 16px; padding-left: 22px; color: var(--muted); }
li { margin-bottom: 8px; }
strong { color: var(--text); font-weight: 600; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
code {
  padding: 2px 6px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--line-soft);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
}

/* Table of contents */
.toc { margin: 0 0 40px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.toc p { margin: 0 0 10px; color: var(--subtle); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 5px; }

.callout {
  margin: 0 0 28px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: var(--radius);
}
.callout p:last-child { margin-bottom: 0; }

table { width: 100%; margin: 0 0 18px; border-collapse: collapse; font-size: 15px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line-soft); color: var(--muted); }
th { color: var(--text); font-weight: 600; }

footer { border-top: 1px solid var(--line); padding: 26px 0 34px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-note { margin: 0; color: var(--subtle); font-size: 13px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; }

@media (max-width: 600px) {
  .footer-row { flex-direction: column; align-items: flex-start; }
  main { padding: 36px 0 52px; }
}

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