/*
 * y-secret-pass.com — the extension's site. The palette is the
 * extension's own 0.6.0 tokens (src/ui/tokens.css): deep navy, slate greys and
 * one blue. The hero, the security band and the header are always navy — the
 * brand; the rest follows the system light or dark scheme.
 */

/* Inter, the same subset the extension bundles: Latin and Cyrillic only. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: light dark;

  /* brand, both schemes */
  --navy-950: #0b1120;
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #1e3a8a;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-300: #93c5fd;
  --on-navy: #f1f5f9;
  --on-navy-muted: #94a3b8;
  --on-navy-line: rgba(148, 163, 184, 0.16);

  /* light scheme */
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --fg: #0f172a;
  --muted: #475569;
  --subtle: #64748b;
  --accent: #1d4ed8;
  --accent-text: #1d4ed8;
  --accent-soft: #eff4ff;
  --accent-ring: rgba(37, 99, 235, 0.35);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -8px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 30px 80px -20px rgba(2, 6, 23, 0.55), 0 0 0 1px rgba(148, 163, 184, 0.14);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --wrap: 1160px;
  --gutter: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --surface: #0f172a;
    --surface-2: #111a2e;
    --line: #1e293b;
    --line-strong: #334155;
    --fg: #f1f5f9;
    --muted: #cbd5e1;
    --subtle: #94a3b8;
    --accent: #2563eb;
    --accent-text: #93c5fd;
    --accent-soft: #15203a;
    --shadow-sm: none;
    --shadow-md: 0 0 0 1px rgba(148, 163, 184, 0.04);
  }
}

/* --- base ------------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font:
    400 16px/1.65 Inter,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--accent-text);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 6px;
}
code {
  font-family: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
h1,
h2,
h3 {
  color: inherit;
  font-weight: 650;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.icon {
  flex: none;
  display: block;
}

/* --- header (navy on every page) -------------------------------------------------------- */

header.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 17, 32, 0.96);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--on-navy-line);
  color: var(--on-navy);
}
header.top .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.25);
}
header.top nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
header.top nav a {
  color: var(--on-navy-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 120ms ease;
}
header.top nav a:hover,
header.top nav a[aria-current='page'] {
  color: #fff;
}
header.top nav a.lang {
  padding: 5px 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  color: var(--on-navy);
}
header.top nav a.lang:hover {
  border-color: rgba(148, 163, 184, 0.5);
}

/* --- buttons ---------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}
.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 8px 24px -8px rgba(37, 99, 235, 0.6);
}
/* Not a link yet: the listing is not live. It reads as a status, not a button. */
.btn-primary.is-soon {
  cursor: default;
  background: rgba(37, 99, 235, 0.16);
  color: var(--blue-300);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.35);
}
.btn-ghost {
  color: var(--on-navy);
  border: 1px solid rgba(148, 163, 184, 0.28);
}
.btn-ghost:hover {
  border-color: rgba(148, 163, 184, 0.55);
  background: rgba(148, 163, 184, 0.06);
}

/* --- hero ------------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: -64px; /* under the translucent header */
  padding: calc(64px + 88px) 0 0;
  color: var(--on-navy);
  text-align: center;
  background:
    radial-gradient(900px 480px at 50% -8%, rgba(37, 99, 235, 0.34), transparent 70%),
    radial-gradient(600px 400px at 100% 30%, rgba(30, 58, 138, 0.35), transparent 70%),
    radial-gradient(600px 400px at 0% 60%, rgba(30, 58, 138, 0.25), transparent 70%), var(--navy-950);
}
/* The night city (the extension's sign-in photo, background/back1.jpg): darkened at the top
   under the header and the title, the skyline shows through lower down, by the window. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 17, 32, 0.88) 0%, rgba(11, 17, 32, 0.45) 40%, rgba(11, 17, 32, 0.12) 72%, rgba(11, 17, 32, 0.4) 100%),
    radial-gradient(ellipse 50% 40% at 50% 38%, rgba(11, 17, 32, 0.6), transparent 72%),
    url('/bg/city.webp?v=1') center 55% / cover no-repeat;
}
@media (max-width: 960px) {
  .hero::before {
    background:
      linear-gradient(180deg, rgba(11, 17, 32, 0.9) 0%, rgba(11, 17, 32, 0.7) 45%, rgba(11, 17, 32, 0.4) 80%, rgba(11, 17, 32, 0.6) 100%),
      url('/bg/city-small.webp?v=1') 60% 100% / cover no-repeat;
  }
}
/* The light page rises under the window's lower half. */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  z-index: -1;
  background: var(--bg);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-300);
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.25);
}
.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}
.hero h1 {
  margin: 0 auto 24px;
  max-width: 880px;
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.hero h1 .accent {
  background: linear-gradient(180deg, #bfdbfe 0%, var(--blue-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  margin: 0 auto 36px;
  max-width: 640px;
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.6;
  color: var(--on-navy-muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 0 0 64px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--on-navy-muted);
}
.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust .icon {
  color: #34d399;
}

/* A plain window frame around the real capture: no fake browser chrome beyond three dots. */
.window {
  margin: 0 auto;
  max-width: 1080px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-900);
  box-shadow: var(--shadow-lg);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  background: #0d1526;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #334155;
}
.window-bar em {
  margin: 0 auto;
  padding-right: 50px;
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--on-navy-muted);
}
.window img {
  display: block;
  width: 100%;
}

/* --- numbers ---------------------------------------------------------------------------- */

.stats {
  padding: 72px 0 24px;
}
.stats dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats dl > div {
  padding: 28px 24px;
}
.stats dl > div + div {
  border-left: 1px solid var(--line);
}
.stats dt {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stats dd {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--subtle);
}

/* --- sections --------------------------------------------------------------------------- */

.section {
  padding: 104px 0;
}
.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.section-head h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.section-head p:last-child {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.features.two {
  grid-template-columns: repeat(2, 1fr);
}
.feature {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}
.feature:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 10px;
  color: var(--accent-text);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14);
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* --- showcase --------------------------------------------------------------------------- */

.showcase {
  padding-top: 24px;
  background: linear-gradient(var(--bg), var(--surface-2) 30%, var(--surface-2) 70%, var(--bg));
}
.showcase-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: center;
  gap: 72px;
}
.showcase-row + .showcase-row {
  margin-top: 120px;
}
.showcase-row.is-reversed {
  grid-template-columns: 7fr 5fr;
}
.showcase-row.is-reversed .showcase-text {
  order: 2;
}
.showcase-text h3 {
  margin: 0 0 16px;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.showcase-text > p:not(.eyebrow) {
  margin: 0 0 24px;
  font-size: 17px;
  color: var(--muted);
}
.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  font-weight: 500;
}
.checklist .icon {
  margin-top: 2px;
  padding: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--accent-text);
  background: var(--accent-soft);
}
.showcase-shot {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line),
    0 24px 60px -24px rgba(15, 23, 42, 0.35);
}
.showcase-shot img {
  display: block;
  width: 100%;
}

/* --- security band (navy on every scheme) ----------------------------------------------- */

.section.dark {
  color: var(--on-navy);
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(37, 99, 235, 0.22), transparent 70%),
    radial-gradient(600px 360px at 0% 100%, rgba(30, 58, 138, 0.3), transparent 70%), var(--navy-950);
}
.section.dark .eyebrow {
  color: var(--blue-400);
}
.section.dark .section-head p:last-child,
.section.dark .feature p {
  color: var(--on-navy-muted);
}
.section.dark .feature {
  background: rgba(15, 23, 42, 0.6);
  border-color: var(--on-navy-line);
  box-shadow: none;
}
.section.dark .feature:hover {
  border-color: rgba(148, 163, 184, 0.3);
}
.section.dark .feature-icon {
  color: var(--blue-300);
  background: rgba(37, 99, 235, 0.16);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.22);
}
.section.dark code {
  background: rgba(148, 163, 184, 0.1);
  border-color: var(--on-navy-line);
  color: var(--on-navy);
}
.note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 24px 0 0;
  padding: 20px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--on-navy-muted);
  border: 1px dashed rgba(148, 163, 184, 0.28);
}
.note .icon {
  margin-top: 2px;
  color: var(--blue-300);
}

@media (prefers-color-scheme: dark) {
  .section.dark {
    border-top: 1px solid var(--on-navy-line);
    border-bottom: 1px solid var(--on-navy-line);
  }
}

/* --- footer ----------------------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 14px;
  padding: 28px 0 40px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}
footer a {
  color: var(--muted);
}
.site-footer {
  border-top: 0;
  padding: 48px 0;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 48px;
  align-items: start;
}
.footer-brand .brand {
  color: var(--fg);
}
.footer-brand .brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}
.footer-brand p {
  margin: 10px 0 0;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.site-footer nav a {
  text-decoration: none;
  font-weight: 500;
}
.site-footer nav a:hover {
  color: var(--fg);
}
.copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* --- privacy policy (site/privacy.html) ------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: -64px;
  padding: calc(64px + 72px) 0 72px;
  color: var(--on-navy);
  background:
    radial-gradient(800px 420px at 80% -10%, rgba(37, 99, 235, 0.3), transparent 70%),
    radial-gradient(600px 360px at 0% 100%, rgba(30, 58, 138, 0.3), transparent 70%), var(--navy-950);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 17, 32, 0.94) 0%, rgba(11, 17, 32, 0.78) 50%, rgba(11, 17, 32, 0.4) 100%),
    url('/bg/city.webp?v=1') center 70% / cover no-repeat;
}
@media (max-width: 960px) {
  .page-hero::before {
    background:
      linear-gradient(180deg, rgba(11, 17, 32, 0.9) 0%, rgba(11, 17, 32, 0.72) 100%),
      url('/bg/city-small.webp?v=1') center 70% / cover no-repeat;
  }
}
.page-hero .eyebrow {
  color: var(--blue-400);
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.page-hero-sub {
  margin: 8px 0 0;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--on-navy-muted);
}
.page-hero-meta {
  margin: 20px 0 32px;
  font-size: 14px;
  color: var(--on-navy-muted);
}
.page-hero .hero-actions {
  justify-content: flex-start;
  margin-bottom: 48px;
}
.hero-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--on-navy-line);
}
.hero-points .icon {
  padding: 9px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--blue-300);
  background: rgba(37, 99, 235, 0.16);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.22);
}
.hero-points strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--on-navy);
}
.hero-points li > span > span {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--on-navy-muted);
}
header.top .lang-group {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
}
header.top .lang-group a.lang {
  padding: 3px 11px;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-navy-muted);
}
header.top .lang-group a.lang:hover {
  color: #fff;
  background: rgba(148, 163, 184, 0.12);
}

.policy-lang {
  padding: 88px 0;
}
.policy-lang + .policy-lang {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.policy-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  justify-content: space-between;
  gap: 64px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 96px;
  font-size: 14px;
}
.toc-title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
}
.toc ol {
  margin: 0;
  padding: 0 0 0 1px;
  list-style: none;
  counter-reset: toc;
  border-left: 1px solid var(--line);
}
.toc li {
  counter-increment: toc;
}
.toc a {
  display: flex;
  gap: 10px;
  margin-left: -1px;
  padding: 6px 0 6px 16px;
  border-left: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.4;
  transition:
    color 120ms ease,
    border-color 120ms ease;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  flex: none;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  line-height: 1.7;
  color: var(--subtle);
}
.toc a:hover {
  color: var(--fg);
  border-left-color: var(--accent);
}

article.policy {
  counter-reset: section;
}
.policy-title {
  margin: 0 0 8px;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
article.policy h2:not(.policy-title) {
  counter-increment: section;
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 52px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
article.policy h2:not(.policy-title)::before {
  content: counter(section, decimal-leading-zero);
  flex: none;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent-text);
}
article.policy p,
article.policy li {
  color: var(--muted);
}
article.policy ul {
  padding-left: 20px;
}
article.policy li + li {
  margin-top: 8px;
}
article.policy li::marker {
  color: var(--accent-text);
}
article.policy strong {
  color: var(--fg);
  font-weight: 600;
}
.meta {
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--subtle);
}
.summary {
  margin: 0;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-left: 3px solid var(--accent);
}
article.policy .summary {
  color: var(--fg);
}
.table-scroll {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th,
td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle);
  background: var(--surface-2);
}
td {
  color: var(--muted);
}
td:first-child {
  white-space: nowrap;
}
td code {
  font-size: 13px;
}
tr:last-child td {
  border-bottom: 0;
}

/* --- smaller screens -------------------------------------------------------------------- */

@media (max-width: 960px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .showcase-row,
  .showcase-row.is-reversed {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .showcase-row.is-reversed .showcase-text {
    order: 0;
  }
  .showcase-row + .showcase-row {
    margin-top: 88px;
  }
  .stats dl {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats dl > div:nth-child(3) {
    border-left: 0;
  }
  .stats dl > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .policy-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    display: none;
  }
  .hero-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
  header.top .wrap {
    height: 56px;
    gap: 12px;
  }
  header.top nav {
    gap: 16px;
  }
  /* The brand leads home and the footer carries the documents: only the language stays. */
  header.top nav a:not(.lang) {
    display: none;
  }
  .hero {
    margin-top: -56px;
    padding-top: calc(56px + 56px);
  }
  .hero::after {
    height: 72px;
  }
  .trust {
    flex-direction: column;
    align-items: center;
    margin-bottom: 44px;
  }
  .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
  .window-bar {
    height: 30px;
  }
  .window-bar span {
    width: 9px;
    height: 9px;
  }
  .window-bar em {
    display: none;
  }
  .section {
    padding: 72px 0;
  }
  .section-head {
    margin-bottom: 40px;
  }
  .features,
  .features.two {
    grid-template-columns: 1fr;
  }
  .feature {
    padding: 22px;
  }
  .stats {
    padding-top: 48px;
  }
  .stats dl > div {
    padding: 20px 16px;
  }
  .site-footer .wrap {
    grid-template-columns: 1fr;
  }
  .page-hero {
    margin-top: -56px;
    padding: calc(56px + 48px) 0 48px;
  }
  .policy-lang {
    padding: 56px 0;
  }
  .page-hero .hero-actions {
    flex-wrap: nowrap;
  }
  .page-hero .btn {
    flex: 1;
    width: auto;
  }
  td:first-child {
    white-space: normal;
  }
}
