/* Takes legal and support pages. Tokens follow SPEC.md section 9 ("light in the dark").
   Fonts are self-hosted so the pages make no third-party requests. */

/* Familjen Grotesk and Google Sans Flex (SIL OFL), Google Fonts woff2 subsets: latin, latin-ext, vietnamese. */
/* Familjen Grotesk, vietnamese */
@font-face {
  font-family: "Familjen Grotesk";
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/familjen-grotesk-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Familjen Grotesk, latin-ext */
@font-face {
  font-family: "Familjen Grotesk";
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/familjen-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Familjen Grotesk, latin */
@font-face {
  font-family: "Familjen Grotesk";
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/familjen-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Google Sans Flex, vietnamese */
@font-face {
  font-family: "Google Sans Flex";
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("/fonts/google-sans-flex-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Google Sans Flex, latin-ext */
@font-face {
  font-family: "Google Sans Flex";
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("/fonts/google-sans-flex-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Google Sans Flex, latin */
@font-face {
  font-family: "Google Sans Flex";
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("/fonts/google-sans-flex-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #020204;
  --surface: #0B0B12;
  --elevated: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text-primary: #F5F5F8;
  --text-secondary: #B8B8C6;
  --text-tertiary: #8D8DA2;
  --text-inverse: #020204;
  --accent: #7B5CFF;
  --accent-soft: #B5A3FF;
  --accent-deep: #6C3CFF;
  --accent-2: #A040F5;
  --font-display: "Familjen Grotesk", system-ui, sans-serif;
  --font-body: "Google Sans Flex", system-ui, sans-serif;
  --radius-card: 24px;
  --radius-row: 18px;
  --gutter: 20px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-secondary);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-soft); text-underline-offset: 3px; }
a:hover { color: var(--text-primary); }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Bar */
.bar {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font: 700 19px/1 var(--font-display);
}
.brand img {
  width: 28px;
  height: 28px;
  flex: none;
  display: block;
  border-radius: 22.4%;
  box-shadow: 0 0 0 1px var(--line-strong);
}
.lang {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--elevated);
  color: var(--text-primary);
  font: 500 14px/1 var(--font-body);
  text-decoration: none;
}

/* Document */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px var(--gutter) 64px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--text-tertiary);
  font: 600 12px/1.2 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
h1, h2, h3 { color: var(--text-primary); font-family: var(--font-display); }
h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h1 em {
  font-style: normal;
  color: var(--accent-soft);
  text-shadow: 0 0 24px rgba(123, 92, 255, 0.55);
}
h2 {
  margin: 44px 0 10px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}
h3 {
  margin: 28px 0 6px;
  font-size: 17px;
  font-weight: 600;
}
.meta {
  margin: 12px 0 0;
  color: var(--text-tertiary);
  font: 500 13px/1.4 var(--font-body);
}
.lead { margin: 22px 0 0; font-size: 17px; color: var(--text-secondary); }
p, li { max-width: 68ch; }
ul { padding-left: 1.2em; }
li { margin: 6px 0; }
strong { color: var(--text-primary); font-weight: 600; }

/* Lit card: surface base, violet light from the bottom edge, rim brightest there. */
.card {
  position: relative;
  margin: 32px 0 0;
  padding: 24px;
  border-radius: var(--radius-card);
  background:
    radial-gradient(120% 70% at 50% 115%, rgba(123, 92, 255, 0.34), transparent 70%),
    linear-gradient(to top, rgba(123, 92, 255, 0.14), transparent 60%),
    var(--surface);
  box-shadow: 0 18px 48px -22px rgba(123, 92, 255, 0.55);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(to top, rgba(181, 163, 255, 0.75), rgba(255, 255, 255, 0.08) 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.card h2 { margin-top: 0; font-size: 20px; }
.card ul { margin: 0; }
.card li { color: var(--text-primary); }

/* Plain dark card for links and FAQ groups */
.panel {
  margin: 16px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-row);
  background: var(--surface);
  overflow: hidden;
}
.panel a.row, .panel details { border-top: 1px solid var(--line); }
.panel > :first-child { border-top: 0; }
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 14px 18px;
  color: var(--text-primary);
  font: 600 17px/1.3 var(--font-display);
  text-decoration: none;
}
.row span { color: var(--text-tertiary); font: 400 14px/1.3 var(--font-body); }
.row:hover { background: var(--elevated); color: var(--text-primary); }

details { padding: 0 18px; }
summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  color: var(--text-primary);
  font: 600 17px/1.35 var(--font-display);
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-tertiary);
  border-bottom: 2px solid var(--text-tertiary);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}
details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
details > :not(summary) { margin-top: 0; }
details > :last-child { margin-bottom: 18px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 18px;
  padding: 0 26px;
  border-radius: 26px;
  background: var(--text-primary);
  color: var(--text-inverse);
  font: 700 16px/1 var(--font-display);
  text-decoration: none;
  box-shadow: 0 0 28px rgba(245, 245, 248, 0.18);
}
.button:hover { color: var(--text-inverse); background: #FFFFFF; }

/* Footer */
footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  color: var(--text-tertiary);
  font: 500 13px/1.6 var(--font-body);
}
footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 8px; }
footer a { color: var(--text-secondary); text-decoration: none; }
footer a:hover { color: var(--text-primary); }
footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  summary::after { transition: none; }
}
