/* Shape system: 16px content panels, 8-13px interactive controls. */
:root {
  color-scheme: dark;
  --bg: #0b0c0a;
  --surface: #12130f;
  --surface-raised: #171913;
  --surface-accent: #1d1f15;
  --line: rgba(231, 232, 199, .11);
  --line-strong: rgba(215, 214, 64, .34);
  --text: #f1f2e9;
  --muted: #a7aa98;
  --quiet: #747866;
  --accent: #d7d640;
  --accent-strong: #ebea4b;
  --accent-ink: #17180d;
  --radius: 16px;
  --page-width: 1360px;
  --font-sans: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background:
    radial-gradient(circle at 74% -8%, rgba(215, 214, 64, .08), transparent 34rem),
    linear-gradient(180deg, #0d0e0b 0%, var(--bg) 42%);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(241, 242, 233, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 242, 233, .018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 76%);
}

a { color: inherit; }
button, a { font: inherit; }
button { color: inherit; }

::selection {
  color: var(--text);
  background: rgba(215, 214, 64, .28);
}

[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--accent-ink);
  background: var(--accent);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

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

.policy-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 12, 10, .88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.policy-header__inner {
  width: min(var(--page-width), calc(100% - 48px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.policy-home {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.policy-home img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(5, 6, 4, .32);
  transition: transform 220ms cubic-bezier(.16, 1, .3, 1), border-color 220ms ease;
}

.policy-home:hover img { transform: translateY(-2px); border-color: var(--accent); }
.policy-home:active img { transform: translateY(0) scale(.98); }

.policy-home span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.policy-home strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.policy-home small {
  color: var(--quiet);
  font: 700 8px/1.3 var(--font-mono);
  letter-spacing: .16em;
}

.language-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(18, 19, 15, .86);
}

.lang-button {
  width: 40px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  filter: saturate(.55);
  opacity: .58;
  transition: border-color 180ms ease, background 180ms ease, opacity 180ms ease, filter 180ms ease, transform 180ms ease;
}

.lang-button svg {
  width: 27px;
  height: 18px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(241, 242, 233, .16);
}

.lang-button:hover { opacity: .9; filter: saturate(.8); }
.lang-button:active { transform: scale(.96); }
.lang-button.active {
  border-color: var(--line-strong);
  background: rgba(215, 214, 64, .08);
  filter: none;
  opacity: 1;
}

.policy-home:focus-visible,
.lang-button:focus-visible,
.policy-nav a:focus-visible,
.policy-content a:focus-visible,
.policy-footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.policy-shell {
  width: min(var(--page-width), calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(42px, 4vw, 64px) 0 104px;
}

.policy-hero {
  min-height: min(560px, calc(100dvh - 136px));
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
  align-items: center;
  gap: clamp(56px, 9vw, 144px);
  padding: 24px 0 72px;
}

.policy-hero__copy { max-width: 830px; }

.policy-updated {
  margin: 0 0 22px;
  color: var(--accent);
  font: 700 11px/1.5 var(--font-mono);
  letter-spacing: .08em;
}

.policy-hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(46px, 5vw, 72px);
  font-weight: 760;
  line-height: .98;
  letter-spacing: -.058em;
  text-wrap: balance;
}

.policy-lead {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.7;
}

.policy-summary {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(29, 31, 21, .94), rgba(18, 19, 15, .96));
  box-shadow: 0 30px 70px rgba(5, 6, 4, .25);
}

.policy-summary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44%;
  height: 2px;
  background: var(--accent);
}

.policy-summary div {
  display: grid;
  gap: 7px;
  padding: 24px 26px;
}

.policy-summary div + div { border-top: 1px solid var(--line); }

.policy-summary span {
  color: var(--quiet);
  font: 700 9px/1.4 var(--font-mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}

.policy-summary strong,
.policy-summary a {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.policy-summary a { color: var(--accent); }

.policy-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(56px, 8vw, 124px);
  align-items: start;
  padding-top: 72px;
  border-top: 1px solid var(--line);
}

.policy-nav {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 5px;
}

.policy-nav > strong {
  margin-bottom: 15px;
  color: var(--text);
  font-size: 13px;
  font-weight: 730;
}

.policy-nav a {
  position: relative;
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.policy-nav a:hover {
  color: var(--text);
  background: rgba(241, 242, 233, .035);
  transform: translateX(3px);
}

.policy-nav a:active { transform: translateX(1px) scale(.99); }

.policy-nav .policy-nav__store {
  margin-top: 18px;
  border: 1px solid var(--line-strong);
  color: var(--accent);
  text-align: center;
}

.policy-nav .policy-nav__store:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: rgba(215, 214, 64, .07);
  transform: translateY(-1px);
}

.policy-content {
  min-width: 0;
  display: grid;
  gap: 84px;
}

.policy-chapter { scroll-margin-top: 104px; }

.policy-chapter > h2 {
  max-width: 740px;
  margin: 0 0 34px;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 730;
  line-height: 1.06;
  letter-spacing: -.042em;
}

.policy-items { border-top: 1px solid var(--line-strong); }

.policy-item {
  display: grid;
  grid-template-columns: minmax(170px, .62fr) minmax(0, 1.38fr);
  gap: clamp(28px, 5vw, 72px);
  padding: 34px 0 38px;
}

.policy-item + .policy-item { border-top: 1px solid var(--line); }

.policy-item h3 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 710;
  line-height: 1.35;
  letter-spacing: -.015em;
}

.policy-item p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.78;
}

.policy-item a {
  color: var(--accent);
  font-weight: 680;
  text-decoration-color: rgba(215, 214, 64, .42);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.policy-item a:hover { color: var(--accent-strong); text-decoration-color: currentColor; }

.policy-chapter--support {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(215, 214, 64, .045), transparent 58%),
    var(--surface);
}

.policy-chapter--support > h2 { margin-bottom: 26px; }
.policy-chapter--support .policy-item { padding-bottom: 2px; }

.policy-footer {
  width: min(var(--page-width), calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font: 650 10px/1.4 var(--font-mono);
  letter-spacing: .06em;
}

.policy-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
}

.policy-footer a:hover { color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  article:not([hidden]) .policy-hero__copy > * {
    animation: policy-rise 620ms cubic-bezier(.16, 1, .3, 1) both;
  }

  article:not([hidden]) .policy-hero__copy > :nth-child(2) { animation-delay: 70ms; }
  article:not([hidden]) .policy-hero__copy > :nth-child(3) { animation-delay: 130ms; }
  article:not([hidden]) .policy-summary { animation: policy-rise 680ms 150ms cubic-bezier(.16, 1, .3, 1) both; }

  @keyframes policy-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 980px) {
  .policy-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 22px 0 68px;
  }

  .policy-summary { max-width: 680px; }

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

  .policy-nav {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .policy-nav > strong { grid-column: 1 / -1; }
  .policy-nav a { border: 1px solid var(--line); text-align: center; }
  .policy-nav .policy-nav__store { grid-column: 1 / -1; margin-top: 4px; }
}

@media (max-width: 680px) {
  .policy-header__inner,
  .policy-shell,
  .policy-footer { width: min(100% - 30px, var(--page-width)); }

  .policy-home small { display: none; }
  .policy-header__inner { min-height: 68px; }
  .policy-home img { width: 40px; height: 40px; border-radius: 12px; }

  .policy-shell { padding-top: 42px; padding-bottom: 72px; }

  .policy-hero {
    gap: 34px;
    padding-bottom: 54px;
  }

  .policy-hero h1 {
    font-size: clamp(39px, 12.5vw, 58px);
    line-height: 1.01;
    letter-spacing: -.05em;
  }

  .policy-lead { margin-top: 22px; font-size: 16px; }
  .policy-summary div { padding: 20px; }
  .policy-layout { padding-top: 46px; }

  .policy-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .policy-nav::-webkit-scrollbar { display: none; }

  .policy-nav > strong { display: none; }
  .policy-nav a {
    min-width: max-content;
    scroll-snap-align: start;
    padding: 10px 13px;
  }

  .policy-nav .policy-nav__store { margin: 0; }
  .policy-content { gap: 66px; }
  .policy-chapter > h2 { margin-bottom: 26px; }

  .policy-item {
    grid-template-columns: 1fr;
    gap: 11px;
    padding: 26px 0 30px;
  }

  .policy-item h3 { font-size: 16px; }
  .policy-item p { font-size: 14px; line-height: 1.72; }
  .policy-chapter--support { padding: 25px 20px 28px; }

  .policy-footer {
    min-height: 92px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .policy-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media print {
  body { color: #202118; background: #f4f4ee; }
  body::before, .policy-header, .policy-nav, .policy-footer { display: none; }
  .policy-shell { width: 100%; padding: 0; }
  .policy-hero { min-height: 0; grid-template-columns: 1fr; padding: 0 0 36px; }
  .policy-summary { border-color: #c9cabd; background: #ecece4; box-shadow: none; }
  .policy-layout { display: block; padding-top: 36px; border-color: #c9cabd; }
  .policy-content { gap: 50px; }
  .policy-chapter--support { border-color: #c9cabd; background: #ecece4; }
  .policy-item p, .policy-lead { color: #4e5043; }
  .policy-summary::before { background: #89891d; }
}
