:root {
  color-scheme: light dark;
  --bg: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #101828;
  --muted: #5d6677;
  --line: #dce2ec;
  --brand: #2368e8;
  --brand-strong: #174eb8;
  --brand-soft: #eaf1ff;
  --success: #157347;
  --warning-bg: #fff8e6;
  --warning-text: #704f00;
  --shadow: 0 20px 60px rgba(38, 61, 99, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% -8%, rgba(64, 156, 255, 0.22), transparent 34rem),
    radial-gradient(circle at 90% 8%, rgba(99, 78, 234, 0.17), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--brand);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-strong);
}

a:focus-visible {
  outline: 3px solid rgba(35, 104, 232, 0.35);
  outline-offset: 3px;
  border-radius: 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(220, 226, 236, 0.8);
  background: rgba(245, 247, 251, 0.82);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.nav-shell,
.page-shell,
.footer-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(35, 104, 232, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 15px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: var(--brand);
}

.language-link {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.page-shell {
  padding: 72px 0 88px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: 56px;
  min-height: 520px;
}

.eyebrow {
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 {
  margin: 12px 0 20px;
  font-size: clamp(42px, 7vw, 74px);
}

.legal-header h1 {
  font-size: clamp(38px, 6vw, 62px);
}

h2 {
  margin: 44px 0 14px;
  font-size: clamp(26px, 4vw, 34px);
}

h3 {
  margin: 28px 0 10px;
  font-size: 21px;
}

p,
li {
  color: var(--muted);
}

strong {
  color: var(--text);
}

.lead {
  max-width: 720px;
  font-size: clamp(20px, 2.5vw, 25px);
  line-height: 1.5;
}

.hero-icon {
  justify-self: center;
  width: min(330px, 70vw);
  border-radius: 30%;
  box-shadow: var(--shadow);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 750;
  text-decoration: none;
}

.button:hover {
  background: var(--brand-strong);
  color: #ffffff;
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 34px 0;
}

.card,
.legal-card,
.notice {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card {
  padding: 28px;
  border-radius: var(--radius);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.legal-header {
  max-width: 820px;
  margin: 0 auto 34px;
  text-align: center;
}

.metadata {
  color: var(--muted);
  font-size: 15px;
}

.legal-card {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 60px);
  border-radius: 28px;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card ul,
.legal-card ol {
  padding-left: 1.35em;
}

.toc {
  margin: 24px 0 40px;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--brand-soft);
}

.toc strong {
  display: block;
  margin-bottom: 8px;
}

.toc ol {
  margin: 0;
  columns: 2;
}

.notice {
  margin: 28px 0;
  padding: 20px 22px;
  border-radius: 18px;
}

.notice.warning {
  border-color: #f2d58c;
  background: var(--warning-bg);
  color: var(--warning-text);
}

.notice p:last-child,
.card p:last-child {
  margin-bottom: 0;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #e9f8ef;
  color: var(--success);
  font-size: 14px;
  font-weight: 750;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 46px;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.footer-links a {
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.94em;
}

@media (max-width: 820px) {
  .site-header {
    position: static;
  }

  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 12px 16px;
  }

  .page-shell {
    padding-top: 46px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-icon {
    grid-row: 1;
    width: min(220px, 58vw);
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .toc ol {
    columns: 1;
  }

  .footer-shell {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0e14;
    --surface: rgba(26, 31, 42, 0.92);
    --surface-strong: #1a1f2a;
    --text: #f5f7fb;
    --muted: #b8c0cf;
    --line: #32394a;
    --brand: #6ca0ff;
    --brand-strong: #91b8ff;
    --brand-soft: #18294d;
    --warning-bg: #30260f;
    --warning-text: #f6d77f;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  }

  .site-header {
    background: rgba(11, 14, 20, 0.82);
  }

  .status-chip {
    background: #113621;
    color: #7bdfa5;
  }

  .site-footer {
    background: rgba(16, 20, 28, 0.75);
  }
}

@media print {
  .site-header,
  .site-footer,
  .language-link,
  .button-row {
    display: none;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .page-shell {
    padding: 0;
  }

  .legal-card {
    max-width: none;
    border: 0;
    box-shadow: none;
  }
}
