:root {
  color-scheme: light dark;
  --bg: #f7f8ff;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --surface-soft: #eff1ff;
  --text: #17182b;
  --muted: #5f637c;
  --line: #dfe2f2;
  --brand: #6259e8;
  --brand-strong: #473cc7;
  --brand-soft: #ebeaff;
  --accent: #12a88b;
  --accent-soft: #ddf8f1;
  --warning-soft: #fff6d8;
  --warning-text: #76560c;
  --shadow: 0 24px 70px rgba(49, 42, 126, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1180px;
}

:root[data-theme="dark"] {
  --bg: #10111c;
  --surface: rgba(27, 29, 46, 0.9);
  --surface-solid: #1b1d2e;
  --surface-soft: #232541;
  --text: #f7f7ff;
  --muted: #b6bad0;
  --line: #343750;
  --brand: #9b94ff;
  --brand-strong: #b7b2ff;
  --brand-soft: #2c2b57;
  --accent: #5ee0c4;
  --accent-soft: #163e37;
  --warning-soft: #413714;
  --warning-text: #ffe591;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.3);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10111c;
    --surface: rgba(27, 29, 46, 0.9);
    --surface-solid: #1b1d2e;
    --surface-soft: #232541;
    --text: #f7f7ff;
    --muted: #b6bad0;
    --line: #343750;
    --brand: #9b94ff;
    --brand-strong: #b7b2ff;
    --brand-soft: #2c2b57;
    --accent: #5ee0c4;
    --accent-soft: #163e37;
    --warning-soft: #413714;
    --warning-text: #ffe591;
    --shadow: 0 26px 80px rgba(0, 0, 0, 0.3);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 2%, color-mix(in srgb, var(--brand) 15%, transparent) 0, transparent 28rem),
    radial-gradient(circle at 96% 18%, color-mix(in srgb, var(--accent) 12%, transparent) 0, transparent 25rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

a:hover {
  text-decoration-thickness: 0.13em;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 64%, white);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  transform: translateY(-160%);
  border-radius: 10px;
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: var(--shadow);
  font-weight: 700;
}

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

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--brand), #7b58df 62%, var(--accent));
  color: #fff;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 27%, transparent);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.brand-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

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

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

.control-button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.language-switch .control-button {
  min-width: 48px;
  padding: 7px 12px;
}

.language-switch .control-button[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 5px 14px color-mix(in srgb, var(--brand) 24%, transparent);
}

.theme-button {
  display: inline-flex;
  width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.theme-icon {
  width: 20px;
  height: 20px;
}

.hero {
  padding: 78px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 12px;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line));
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.55rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero h1 span {
  color: var(--brand);
}

.hero-lead {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.8vw, 1.25rem);
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.privacy-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--line));
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.privacy-card::before {
  position: absolute;
  top: -90px;
  right: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  content: "";
  filter: blur(2px);
}

.privacy-card h2 {
  position: relative;
  margin: 0 0 20px;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.highlight-list {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.highlight-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 13px;
  align-items: start;
}

.highlight-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
}

.highlight-item strong,
.highlight-item span {
  display: block;
}

.highlight-item strong {
  margin-top: 1px;
  font-size: 15px;
}

.highlight-item span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.policy-shell {
  padding: 26px 0 90px;
}

.policy-note {
  margin: 0 0 28px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--line));
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--muted);
  font-size: 14px;
}

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

.policy-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 100px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.toc-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 5px;
  padding: 7px 6px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.toc a::before {
  color: var(--brand);
  content: counter(toc, decimal-leading-zero);
  font-variant-numeric: tabular-nums;
}

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

.policy-content {
  min-width: 0;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  box-shadow: 0 20px 60px color-mix(in srgb, var(--brand) 6%, transparent);
}

.policy-content section {
  scroll-margin-top: 100px;
}

.policy-content section + section {
  margin-top: 48px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

.section-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.policy-content h2 {
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.policy-content h3 {
  margin: 26px 0 10px;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.policy-content p {
  margin: 0 0 16px;
  color: var(--muted);
}

.policy-content p:last-child {
  margin-bottom: 0;
}

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

.policy-content ul,
.policy-content ol {
  margin: 14px 0 18px;
  padding-left: 22px;
  color: var(--muted);
}

.policy-content li + li {
  margin-top: 8px;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.data-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.data-card h3 {
  margin: 0 0 8px;
  font-size: 0.96rem;
}

.data-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.callout {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--accent-soft);
}

.callout.warning {
  border-left-color: #d29b15;
  background: var(--warning-soft);
}

.callout p,
.callout.warning p {
  color: var(--text);
  font-size: 14px;
}

.callout.warning p {
  color: var(--warning-text);
}

.table-wrap {
  margin: 22px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-soft);
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

tr:last-child td {
  border-bottom: 0;
}

.provider-list {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.provider {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.provider-badge {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.provider h3 {
  margin: 0 0 4px;
}

.provider p {
  margin: 0;
  font-size: 14px;
}

.delete-panel {
  margin-top: 24px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--accent-soft), var(--surface-solid));
}

.delete-panel h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.primary-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 12px 18px;
  border-radius: 13px;
  background: var(--brand);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 24%, transparent);
}

.primary-link:hover {
  background: var(--brand-strong);
  text-decoration: none;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px;
  font-size: 14px;
}

.site-footer {
  padding: 32px 0 46px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-copy {
  color: var(--muted);
  font-size: 13px;
}

.footer-copy strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  font-size: 13px;
  font-weight: 700;
}

.redirect-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.redirect-card {
  width: min(100%, 560px);
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  text-align: center;
}

.redirect-card .brand-mark {
  margin: 0 auto 18px;
}

.redirect-card h1 {
  margin: 0 0 10px;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.redirect-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .privacy-card {
    max-width: 650px;
  }

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

  .toc {
    position: static;
  }

  .toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 82px;
  }

  .container {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-copy span {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .header-actions {
    gap: 6px;
  }

  .language-switch .control-button {
    min-width: 41px;
    padding-inline: 8px;
  }

  .theme-button {
    width: 38px;
    min-height: 38px;
  }

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

  .hero h1 {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .privacy-card {
    padding: 22px;
  }

  .policy-shell {
    padding-bottom: 60px;
  }

  .toc ol,
  .data-grid {
    grid-template-columns: 1fr;
  }

  .policy-content {
    padding: 23px 18px;
    border-radius: 20px;
  }

  .policy-content section + section {
    margin-top: 38px;
    padding-top: 36px;
  }

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

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

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  :root,
  :root[data-theme="dark"] {
    --bg: #fff;
    --surface: #fff;
    --surface-solid: #fff;
    --surface-soft: #f3f3f8;
    --text: #111;
    --muted: #333;
    --line: #ccc;
    --brand: #4039a7;
    --brand-strong: #4039a7;
    --accent: #087967;
    --accent-soft: #eef8f5;
    --shadow: none;
  }

  body {
    background: #fff;
    font-size: 11pt;
  }

  .site-header,
  .privacy-card,
  .toc,
  .site-footer,
  .skip-link {
    display: none !important;
  }

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

  .hero-grid,
  .policy-layout {
    display: block;
  }

  .hero h1 {
    font-size: 28pt;
  }

  .policy-shell {
    padding: 0;
  }

  .policy-content {
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .policy-content section {
    break-inside: avoid;
  }

  a {
    color: inherit;
  }
}
