*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 82% 6%, rgba(123, 63, 228, 0.18), transparent 30rem),
    var(--bg);
}

a {
  color: var(--royal-bright);
}

:is(a, select):focus-visible {
  outline: 2px solid var(--orange-bright);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--royal);
  border-radius: 4px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.privacy-header,
.privacy-footer {
  display: flex;
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.privacy-header {
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
}

.language-control select {
  min-height: 42px;
  padding: 0 12px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.privacy-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: clamp(48px, 8vw, 112px);
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
  padding: 72px 0 96px;
}

.privacy-index {
  position: sticky;
  top: 32px;
  align-self: start;
  padding: 24px 0;
  border-top: 2px solid var(--orange-bright);
  border-bottom: 1px solid var(--line);
}

.privacy-index p:not(.kicker) {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.privacy-index a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  font-size: 0.78rem;
}

.kicker {
  margin: 0 0 16px;
  color: var(--orange-bright);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.policy {
  min-width: 0;
}

.policy[hidden] {
  display: none;
}

.policy header {
  margin-bottom: 58px;
}

.policy h1 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 600;
  line-height: 1.04;
}

.lede {
  max-width: 62ch;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.policy section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.policy h2 {
  margin: 0 0 18px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
}

.policy h3 {
  margin: 26px 0 8px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.policy p,
.policy li {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

.policy p {
  margin: 12px 0 0;
}

.policy ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

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

.privacy-footer {
  min-height: 84px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  border-top: 1px solid var(--line);
}

.privacy-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 840px) {
  .privacy-layout {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-top: 48px;
  }

  .privacy-index {
    position: static;
  }
}

@media (max-width: 640px) {
  .privacy-header,
  .privacy-footer,
  .privacy-layout {
    width: min(100% - 32px, 1180px);
  }

  .privacy-header {
    min-height: 72px;
  }

  .brand span {
    font-size: 1rem;
  }

  .policy h1 {
    font-size: 2.45rem;
  }

  .policy header {
    margin-bottom: 42px;
  }

  .policy section {
    padding: 28px 0;
  }

  .privacy-footer {
    flex-wrap: wrap;
  }
}
