/* The text pages (privacy, terms, account deletion): the landing page's garage and glass,
   dimmed further because these are long reads. */
:root {
  --navy: #012F50;
  --navy-deep: #00223B;
  --paper: #F2F1EE;
  --teal: #5FB3AE;
  --muted: rgba(242, 241, 238, 0.78);
  --line: rgba(242, 241, 238, 0.14);
  --glass: rgba(0, 30, 52, 0.78);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--paper);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.scene { position: fixed; inset: 0; z-index: -2; background: var(--navy) center 72% / cover no-repeat; }
.night .scene { background-image: url("garage2-night.webp"); filter: brightness(0.8) saturate(0.9); }
.day .scene { background-image: url("garage2-day.webp"); filter: brightness(0.78) saturate(0.95); }
.scene::after { content: ""; position: absolute; inset: 0; background: rgba(1, 34, 59, 0.72); }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
          backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.wrap { max-width: 780px; margin: 0 auto; padding: 4px 24px 48px; }
a { color: var(--teal); overflow-wrap: anywhere; }
a:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* The same header as the landing page: logo left, language right, glass once you scroll. */
.head { position: sticky; top: 0; z-index: 20; padding: 16px 0; border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease; }
.head.stuck { background: rgba(0, 30, 52, 0.6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line); }
.head-in { max-width: 1040px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { width: 150px; height: auto; display: block; filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.5)); }

nav.langs { display: flex; padding: 3px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
nav.langs a {
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-decoration: none; color: var(--muted);
  padding: 5px 12px; border-radius: 999px;
}
nav.langs a:hover { color: var(--paper); }
nav.langs a.on { background: var(--paper); color: var(--navy); }

section { padding: 30px 28px; margin-top: 20px; scroll-margin-top: 16px; }
.lang { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); margin: 0 0 6px; }
h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 19px; margin: 30px 0 8px; padding-top: 22px; border-top: 1px solid var(--line); }
h1 + p, h1 + .updated { margin-top: 0; }
p, li, td { color: var(--muted); }
ol, ul { padding-left: 22px; }
li { margin: 4px 0; }
strong { color: var(--paper); }
.updated { font-size: 14px; }
.key { border-left: 4px solid #C46A35; padding: 4px 0 4px 14px; }

.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-top: 1px solid var(--line); }
th { color: var(--paper); font-weight: 600; }

footer { margin-top: 24px; padding: 16px 20px; font-size: 14px; color: var(--muted); }
footer a { color: var(--paper); text-decoration: none; border-bottom: 1px solid rgba(242, 241, 238, 0.35); transition: color 0.15s ease, border-color 0.15s ease; }
footer a:hover { color: var(--teal); border-bottom-color: var(--teal); }
footer a:visited { color: var(--paper); }
footer a:visited:hover { color: var(--teal); }

@media (max-width: 480px) {
  .wrap { padding: 4px 16px 40px; }
  .logo { width: 120px; }
  .head { padding: 12px 0; }
  .head-in { padding: 0 16px; }
  section { padding: 24px 18px; }
}

/* One language at a time (assets/langs.js; assets/time.js sets it before the first paint). */
.lang { display: none; }
#en, .only-en { display: none; }
html.lang-en #en, html.lang-en .only-en { display: block; }
html.lang-en .only-en { display: inline; }
html.lang-en #mk, html.lang-en .only-mk { display: none; }
