:root {
  color-scheme: dark;
  --bg: #05080c;
  --surface: rgba(10, 18, 25, 0.88);
  --surface-strong: #0d171f;
  --text: #edf7f8;
  --muted: #91a8b2;
  --line: rgba(143, 215, 216, 0.16);
  --accent: #1fe3d2;
  --coral: #ff6259;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body.privacy-page {
  min-width: 300px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(31, 227, 210, 0.1), transparent 30rem),
    radial-gradient(circle at 92% 18%, rgba(255, 98, 89, 0.075), transparent 27rem),
    linear-gradient(150deg, #05080c, #071018 46%, #05080c);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.76;
}

body.privacy-page::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(116, 205, 207, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116, 205, 207, 0.026) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 62rem);
}

.page {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px 0 42px;
}

.policy-nav {
  min-height: 58px;
  margin-bottom: 16px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(6, 14, 20, 0.78);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
}

.policy-brand {
  min-height: 38px;
  padding-right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 740;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.policy-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: -5px 5px 16px rgba(31, 227, 210, 0.09), 5px 5px 16px rgba(255, 98, 89, 0.08);
}

.language-switch {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  font-size: 12px;
}

.language-switch a,
.language-switch span {
  min-height: 34px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  background: rgba(12, 25, 32, 0.72);
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.language-switch a:hover {
  color: var(--text);
  border-color: rgba(31, 227, 210, 0.42);
}

.language-switch span {
  color: #061313;
  border-color: transparent;
  background: linear-gradient(105deg, #bafff9, #f3ffff 70%, #ffd2cf);
  font-weight: 720;
}

.policy {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 6vw, 66px);
  border: 1px solid var(--line);
  border-radius: 28px;
  color: #cbdadd;
  background:
    radial-gradient(circle at 7% 0%, rgba(31, 227, 210, 0.08), transparent 25rem),
    linear-gradient(145deg, rgba(13, 24, 32, 0.94), rgba(7, 14, 20, 0.96));
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.045);
}

.policy::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent 4%, var(--accent) 34%, #e9ffff 50%, var(--coral) 68%, transparent 96%);
  opacity: 0.85;
}

.policy-eyebrow {
  margin: 0 0 12px;
  color: #86eae3;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 740;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.policy h1 {
  max-width: 820px;
  margin: 0 0 13px;
  color: var(--text);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 780;
  line-height: 1.03;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.policy .meta {
  margin: 0 0 30px;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.65;
  letter-spacing: 0.03em;
}

.policy h2 {
  margin: 44px 0 13px;
  padding-top: 4px;
  color: var(--text);
  font-size: clamp(19px, 2.8vw, 25px);
  font-weight: 730;
  line-height: 1.26;
  letter-spacing: -0.035em;
}

.policy p {
  margin: 11px 0;
}

.policy ul {
  margin: 13px 0 0;
  padding-left: 1.4em;
}

.policy li {
  margin: 8px 0;
  padding-left: 4px;
}

.policy li::marker {
  color: var(--accent);
}

.policy a {
  color: #83eee6;
  text-decoration-color: rgba(131, 238, 230, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.policy a:hover {
  color: #c2fff9;
}

.policy code {
  padding: 2px 6px;
  border: 1px solid rgba(126, 238, 234, 0.14);
  border-radius: 6px;
  color: #b8fdf7;
  background: rgba(31, 227, 210, 0.06);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.notice {
  position: relative;
  margin: 26px 0 10px;
  padding: 18px 20px 18px 22px;
  overflow: hidden;
  border: 1px solid rgba(31, 227, 210, 0.22);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  color: #d5e7e9;
  background: linear-gradient(110deg, rgba(31, 227, 210, 0.085), rgba(255, 98, 89, 0.035));
}

.notice::after {
  position: absolute;
  top: -34px;
  right: -34px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  content: "";
  background: var(--accent);
  filter: blur(42px);
  opacity: 0.12;
}

.notice p {
  margin: 0;
}

.policy .footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.policy .footer p {
  margin: 0;
}

.privacy-copyright {
  margin: 18px 0 0;
  color: #566a74;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.policy-brand:focus-visible,
.language-switch a:focus-visible,
.policy a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 22px, 1040px);
    padding-top: 10px;
  }

  .policy-nav {
    min-height: 52px;
    margin-bottom: 10px;
    padding: 7px 8px;
    border-radius: 14px;
  }

  .policy-brand {
    font-size: 14px;
  }

  .policy-brand img {
    width: 31px;
    height: 31px;
  }

  .language-switch {
    gap: 4px;
    font-size: 10px;
  }

  .language-switch a,
  .language-switch span {
    min-height: 32px;
    padding: 3px 8px;
  }

  .policy {
    padding: 24px 19px 30px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.72;
  }

  .policy h1 {
    font-size: clamp(29px, 10vw, 42px);
  }

  .policy h2 {
    margin-top: 36px;
    font-size: 20px;
  }

  .notice {
    padding: 15px 15px 15px 17px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
  }
}
