:root {
  color-scheme: light;
  --ink: #17365f;
  --ink-strong: #0d2b50;
  --muted: #5d7795;
  --blue: #2874f0;
  --blue-soft: #eaf3ff;
  --panel: #f6f9fe;
  --surface: #ffffff;
  --line: #b8d3f6;
  --line-soft: #d7e6fb;
  --green: #0f7a4a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: var(--ink);
}

a {
  color: inherit;
}

.legal-shell {
  width: min(1060px, calc(100% - 34px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.brand,
.top-link,
.legal-links a {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-strong);
  font-size: 1.1rem;
  font-weight: 900;
}

.brand-mark {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--blue);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  background: var(--blue-soft);
}

.top-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: #ffffff;
  color: var(--ink-strong);
  font-size: 0.9rem;
  font-weight: 850;
}

.legal-top-actions,
.language-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-switch {
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.language-switch button {
  min-width: 34px;
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  padding: 0 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.language-switch button.active,
.language-switch button:hover {
  background: var(--blue-soft);
  color: var(--ink-strong);
}

.hero {
  padding: 48px 0 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 14px;
  color: var(--ink-strong);
  font-size: clamp(2.15rem, 5vw, 4.6rem);
  font-weight: 620;
  line-height: 1.03;
}

.hero-copy {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.5;
}

.updated {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.notice {
  margin: 0 0 18px;
  border: 1px solid rgba(40, 116, 240, 0.18);
  border-radius: 22px;
  padding: 16px 18px;
  background: var(--blue-soft);
  color: var(--ink-strong);
  font-weight: 780;
  line-height: 1.45;
}

.legal-grid {
  display: grid;
  gap: 16px;
}

.legal-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 48px rgba(23, 54, 95, 0.08);
  padding: 22px;
}

.legal-card h2 {
  margin-bottom: 10px;
  color: var(--ink-strong);
  font-size: 1.35rem;
  line-height: 1.15;
}

.legal-card p,
.legal-card li {
  color: var(--ink);
  line-height: 1.5;
}

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

.legal-card ul {
  display: grid;
  gap: 8px;
  padding-left: 1.1rem;
}

.legal-card strong {
  color: var(--ink-strong);
}

.ad-meaning-card p {
  display: grid;
  gap: 5px;
  border-left: 3px solid var(--blue);
  padding-left: 14px;
}

.legal-footer {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
  color: var(--muted);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.legal-links a {
  color: var(--ink-strong);
  font-size: 0.84rem;
  font-weight: 900;
}

.legal-links a:hover,
.top-link:hover {
  color: var(--blue);
}

@media (max-width: 560px) {
  .legal-shell {
    width: min(100% - 22px, 1060px);
    padding-top: 18px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-top-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding: 34px 0 20px;
  }

  .legal-card {
    border-radius: 20px;
    padding: 18px;
  }
}
