:root {
  color-scheme: dark;
  --bg: #08090b;
  --surface: #f2eee9;
  --surface-strong: #f8f5f1;
  --surface-soft: #e9e4de;
  --surface-tint: #ded8d1;
  --border: rgba(20, 21, 24, 0.14);
  --border-strong: rgba(20, 21, 24, 0.25);
  --text: #15161a;
  --muted: #62636a;
  --subtle: #8b8a8d;
  --accent: #111316;
  --accent-strong: #050608;
  --accent-soft: rgba(17, 19, 22, 0.08);
  --accent-glow: rgba(255, 255, 255, 0.08);
  --success: #267a60;
  --success-soft: rgba(38, 122, 96, 0.1);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.18);
  --radius-xl: 18px;
  --radius-lg: 15px;
  --radius-md: 11px;
  --radius-sm: 9px;
  --max-width: 1220px;
  --dark-panel: #111316;
  --dark-panel-soft: #17191d;
  --dark-border: rgba(255, 255, 255, 0.12);
  --dark-text: #f3f1ee;
  --dark-muted: #aaa9a6;
}

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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% -8%, rgba(255, 255, 255, 0.065), transparent 28%),
    radial-gradient(circle at 84% 14%, rgba(202, 190, 178, 0.06), transparent 30%),
    linear-gradient(180deg, #0c0d10 0%, #07080a 100%);
  color: var(--dark-text);
  line-height: 1.68;
}

body::before {
  content: "";
  position: fixed;
  inset: 16px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.ambient {
  position: fixed;
  inset: auto;
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(92px);
  opacity: 0.22;
  pointer-events: none;
}

.ambient-one {
  top: 8%;
  left: -140px;
  background: rgba(143, 149, 255, 0.45);
}

.ambient-two {
  top: 14%;
  right: -120px;
  background: rgba(199, 180, 255, 0.42);
}

.policy-header,
.policy-footer,
.policy-shell {
  width: min(calc(100% - 64px), var(--max-width));
  margin-inline: auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dark-text);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.28);
  background: #fffaf2;
}

.brand-accent {
  color: #d9d5cf;
}

.back-link,
.policy-footer a,
.contact-link {
  color: #9aa4ff;
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover,
.policy-footer a:hover,
.contact-link:hover {
  text-decoration: underline;
}

.policy-shell {
  padding: 4px 0 30px;
}

.policy-card {
  padding: clamp(30px, 5vw, 64px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 32px;
  background: linear-gradient(165deg, rgba(22, 25, 32, 0.9), rgba(14, 16, 21, 0.92));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.policy-hero {
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.eyebrow {
  margin: 0 0 10px;
  color: #9aa4ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--dark-text);
}

h1 {
  max-width: 720px;
  font-size: clamp(3rem, 6.6vw, 5.1rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--dark-muted);
  font-size: clamp(1rem, 2.5vw, 1.16rem);
  line-height: 1.82;
}

.updated {
  margin: 16px 0 0;
  color: #8f95ff;
  font-size: 0.9rem;
}

section {
  padding: 34px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

section:last-of-type {
  border-bottom: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.35rem, 3vw, 1.78rem);
  letter-spacing: -0.04em;
}

h3 {
  margin: 28px 0 8px;
  font-size: 1.04rem;
  letter-spacing: -0.02em;
}

p {
  margin: 12px 0;
  color: var(--dark-muted);
  line-height: 1.85;
}

strong {
  color: var(--dark-text);
}

ul {
  margin: 14px 0;
  padding-left: 1.35rem;
  color: var(--dark-muted);
}

li {
  margin: 7px 0;
}

code {
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: #f3f1ee;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.limited-use-note {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid rgba(38, 122, 96, 0.2);
  border-radius: 20px;
  background: rgba(38, 122, 96, 0.08);
}

.limited-use-note strong {
  color: #9be1c7;
}

.limited-use-note p {
  margin-bottom: 0;
}

.policy-footer {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--dark-muted);
  font-size: 0.86rem;
}

.policy-footer span {
  font-weight: 700;
  color: var(--dark-text);
}

:focus-visible {
  outline: 3px solid rgba(154, 164, 255, 0.34);
  outline-offset: 4px;
}

@media (max-width: 620px) {
  .policy-header,
  .policy-footer,
  .policy-shell {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .policy-header {
    min-height: 76px;
  }

  .back-link {
    font-size: 0.82rem;
  }

  .policy-shell {
    padding-top: 8px;
  }

  .policy-card {
    border-radius: 24px;
    padding: 26px 22px;
  }

  section {
    padding: 28px 0;
  }
}

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