:root {
  color-scheme: dark;
  --bg: #07090d;
  --surface: #0e1118;
  --surface-2: #141927;
  --line: rgba(255, 255, 255, .1);
  --muted: #9aa3b2;
  --text: #f5f7fb;
  --blue: #2956ff;
  --blue-soft: #9bb0ff;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 84% 4%, rgba(41, 86, 255, .16), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

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

.skip-link {
  position: fixed;
  top: -70px;
  left: 16px;
  z-index: 100;
  border-radius: 10px;
  background: #fff;
  color: #000;
  padding: 10px 14px;
}

.skip-link:focus { top: 16px; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 13, .84);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 17px;
  font-weight: 760;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.back-link {
  color: #c5cad4;
  font-size: 14px;
  text-decoration: none;
}

.back-link:hover { color: #fff; }

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: clamp(48px, 8vw, 104px);
  align-items: start;
  padding: 82px 0 112px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -.055em;
}

.lead {
  max-width: 750px;
  margin-bottom: 18px;
  color: #b5bdca;
  font-size: 19px;
}

.updated {
  margin-bottom: 48px;
  color: #778190;
  font-size: 13px;
}

.summary,
.notice,
.action-card {
  margin: 0 0 48px;
  padding: 24px;
  border: 1px solid rgba(126, 155, 255, .22);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(41, 86, 255, .11), rgba(255, 255, 255, .025));
}

.summary strong,
.notice strong { color: #fff; }

.notice.warning {
  border-color: rgba(255, 196, 112, .3);
  background: rgba(255, 177, 66, .07);
}

.legal-section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.legal-section h3 {
  margin: 26px 0 10px;
  font-size: 18px;
}

.legal-section p,
.legal-section li,
.summary p,
.notice p {
  color: #aeb6c3;
}

.legal-section p:last-child,
.summary p:last-child,
.notice p:last-child { margin-bottom: 0; }

.legal-section ul,
.legal-section ol {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 23px;
}

.legal-section a,
.summary a,
.notice a,
.action-card a {
  color: #b7c5ff;
  text-underline-offset: 3px;
}

.data-table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 15px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: rgba(255, 255, 255, .04);
  color: #fff;
}

.data-table td { color: #aeb6c3; }

.side-nav {
  position: sticky;
  top: 30px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(14, 17, 24, .82);
}

.side-nav strong {
  margin-bottom: 4px;
  color: #fff;
  font-size: 13px;
}

.side-nav a {
  padding: 7px 9px;
  border-radius: 9px;
  color: #929ba9;
  font-size: 13px;
  text-decoration: none;
}

.side-nav a:hover {
  background: rgba(255, 255, 255, .05);
  color: #fff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 10px;
  padding: 0 18px;
  border-radius: 13px;
  background: var(--blue);
  color: #fff !important;
  font-weight: 750;
  text-decoration: none;
}

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

.footer {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #7e8796;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
}

.footer-links a {
  color: #8e97a5;
  text-decoration: none;
}

.footer-links a:hover { color: #fff; }

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .side-nav { display: none; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 28px, var(--max)); }
  .nav { min-height: 68px; }
  .back-link { font-size: 13px; }
  .legal-layout { padding: 60px 0 80px; }
  .lead { font-size: 17px; }
  .data-table { display: block; overflow-x: auto; }
  .footer { padding: 28px 0; align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}

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