:root {
  --acc: #7c3aed;
  --ink: #23282c;
  --muted: #626c77;
  --bg: #ffffff;
  --soft: #f5f6f7;
  --line: #e1e4e8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.65;
  margin: 0;
}

a {
  color: inherit;
  text-decoration-color: var(--acc);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(124, 58, 237, 0.45);
  outline-offset: 3px;
}

.skip-link {
  background: var(--ink);
  color: #fff;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  padding: 10px 14px;
  position: fixed;
  transform: translateY(-180%);
  z-index: 10;
}

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

.policy-nav {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px clamp(20px, 5vw, 72px);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  margin-inline-end: 10px;
  width: 36px;
}

.back-link {
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 700;
  min-height: 44px;
  padding: 9px 16px;
  text-decoration: none;
}

.policy-hero {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  padding: clamp(70px, 10vw, 130px) clamp(20px, 7vw, 110px);
}

.policy-hero h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0;
  max-width: 10ch;
}

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

.policy-hero p {
  color: var(--muted);
  font-size: 1rem;
  margin: 22px 0 0;
}

.policy-layout {
  display: grid;
  gap: clamp(36px, 7vw, 88px);
  grid-template-columns: minmax(190px, 0.32fr) minmax(0, 1fr);
  margin-inline: auto;
  max-width: 1160px;
  padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 58px);
}

.policy-toc {
  align-self: start;
  border-top: 2px solid var(--ink);
  position: sticky;
  top: 24px;
}

.policy-toc a {
  border-bottom: 1px solid var(--line);
  display: block;
  font-size: 0.9rem;
  font-weight: 650;
  padding: 13px 0;
  text-decoration: none;
}

.policy-content { min-width: 0; }

.policy-content section {
  border-top: 1px solid var(--line);
  padding-block: 30px 42px;
  scroll-margin-top: 30px;
}

.policy-content section:first-child {
  border-top: 0;
  padding-top: 0;
}

.policy-content h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 18px;
}

.policy-content p,
.policy-content li { max-width: 72ch; }

.policy-content ul { padding-inline-start: 22px; }

.table-wrap {
  margin-block: 24px;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 760px;
  width: 100%;
}

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

th {
  background: rgba(124, 58, 237, 0.08);
  font-weight: 800;
}

code {
  background: var(--soft);
  border-radius: 4px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.88em;
  padding: 2px 4px;
}

.settings-box {
  background: var(--ink);
  border-radius: 16px;
  color: #fff;
  margin-block: 26px;
  padding: 24px;
}

.settings-box button {
  background: var(--acc);
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  margin-top: 10px;
  min-height: 46px;
  padding: 11px 18px;
}

.policy-footer {
  background: #0a0e14;
  color: #dce4ec;
  padding: 40px clamp(20px, 5vw, 72px);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
  margin-inline: auto;
  max-width: 1120px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.policy-footer button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .policy-layout { grid-template-columns: 1fr; }
  .policy-toc { position: static; }
}

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