:root {
  color-scheme: dark;
  --surface: #0f172a;
  --surface-raised: #1e293b;
  --surface-soft: rgba(30, 41, 59, 0.58);
  --border: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #a8b4c7;
  --accent: #22c55e;
  --link: #60a5fa;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(59, 130, 246, 0.10), transparent 34rem),
    radial-gradient(circle at 88% 18%, rgba(34, 197, 94, 0.07), transparent 30rem),
    var(--surface);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: var(--link); }
a:hover { color: #93c5fd; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
}

.topbar-inner,
.page,
.footer-inner {
  width: min(100% - 2rem, 1120px);
  margin-inline: auto;
}

.topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.brand img { height: 30px; width: auto; }

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.back-link {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.language-switch {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.035);
}

.language-switch button {
  min-width: 40px;
  border: 0;
  border-radius: 0.55rem;
  padding: 0.42rem 0.6rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

.page { padding-block: 4.5rem 5rem; }

.eyebrow {
  margin: 0 0 0.7rem;
  color: #86efac;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 4.35rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.lead {
  max-width: 760px;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.updated {
  display: inline-flex;
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 3.5rem;
  margin-top: 3.5rem;
  align-items: start;
}

.legal-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--surface-soft);
  padding: clamp(1.4rem, 4vw, 3rem);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.18);
}

.legal-card section + section {
  margin-top: 2.6rem;
  padding-top: 2.6rem;
  border-top: 1px solid var(--border);
}

h2 {
  margin: 0 0 0.9rem;
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

h3 { margin: 1.4rem 0 0.55rem; font-size: 1rem; }

p { margin: 0.75rem 0; color: #d6deeb; }

ul, ol { margin: 0.8rem 0 0; padding-left: 1.25rem; color: #d6deeb; }
li + li { margin-top: 0.55rem; }

.notice {
  margin: 1.25rem 0;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 1rem;
  background: rgba(59, 130, 246, 0.08);
  padding: 1rem 1.15rem;
  color: #dbeafe;
}

.company-card {
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.62);
  padding: 1.1rem 1.2rem;
}

.company-card p { margin: 0.3rem 0; }

.toc {
  position: sticky;
  top: 104px;
  border-left: 1px solid var(--border);
  padding-left: 1.2rem;
}

.toc strong {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 0.34rem 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.toc a:hover { color: var(--text); }

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.28);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a[aria-current="page"] { color: var(--text); }

[data-lang-content][hidden] { display: none !important; }

@media (max-width: 820px) {
  .legal-layout { grid-template-columns: 1fr; gap: 2rem; }
  .toc { position: static; order: -1; border-left: 0; border-bottom: 1px solid var(--border); padding: 0 0 1rem; }
  .toc nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
}

@media (max-width: 560px) {
  .topbar-inner { min-height: 64px; }
  .back-link { display: none; }
  .page { padding-block: 3rem 3.5rem; }
  .legal-card { border-radius: 1.1rem; }
  .toc nav { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
