* {
  box-sizing: border-box;
}

:root {
  --bg: #03070c;
  --bg-soft: #07111b;
  --panel: rgba(255, 255, 255, .065);
  --panel-strong: rgba(255, 255, 255, .095);
  --line: rgba(255, 255, 255, .12);
  --text: #f5fbff;
  --muted: #9fb2bf;
  --blue: #5cd2ff;
  --blue-strong: #1e9bff;
  --max: 920px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 0%, rgba(92, 210, 255, .14), transparent 24rem),
    radial-gradient(circle at 12% 70%, rgba(30, 155, 255, .11), transparent 22rem),
    linear-gradient(180deg, #03070c 0%, #07111b 52%, #020409 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .45;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 70%);
}

a {
  color: inherit;
}

.legal-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  background: rgba(3, 7, 12, .78);
  backdrop-filter: blur(18px);
}

.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 950;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(92, 210, 255, .32);
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #c3d2dc;
  font-size: .9rem;
  font-weight: 850;
}

.legal-nav a {
  text-decoration: none;
}

.legal-nav a:hover {
  color: var(--blue);
}

.doc {
  padding: 64px 0 70px;
}

.back {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--blue);
  font-weight: 850;
  text-decoration: none;
}

.doc-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, var(--panel-strong), rgba(255, 255, 255, .028));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .25);
  padding: clamp(24px, 4vw, 42px);
}

.doc h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: .96;
  letter-spacing: -.05em;
}

.updated {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: .95rem;
}

.doc h2 {
  margin: 30px 0 10px;
  color: #f7fcff;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.2;
}

.doc p,
.doc li {
  color: #c6d5df;
  line-height: 1.7;
}

.doc p {
  margin: 8px 0;
}

.doc ul {
  margin: 10px 0 0;
  padding-left: 1.2rem;
}

.doc a:not(.back) {
  color: var(--blue);
  text-underline-offset: 3px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  text-align: left;
  vertical-align: top;
}

th {
  color: #fff;
  background: rgba(92, 210, 255, .10);
}

tr:last-child td {
  border-bottom: 0;
}

code {
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  padding: 2px 6px;
  color: #e8faff;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(255, 255, 255, .075);
  color: #fff;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #fff, var(--blue));
  color: #020409;
}

.legal-footer {
  border-top: 1px solid rgba(255, 255, 255, .09);
  color: #879aa8;
}

.legal-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 42px;
  font-size: .9rem;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.legal-footer a {
  color: var(--blue);
  text-decoration: none;
}

@media (max-width: 620px) {
  .legal-shell {
    width: calc(100% - 20px);
  }

  .legal-header-inner {
    min-height: 64px;
  }

  .legal-nav {
    gap: 9px;
    font-size: .78rem;
  }

  .legal-nav a:first-child {
    display: none;
  }

  .doc {
    padding: 38px 0 52px;
  }

  .doc-card {
    border-radius: 22px;
    padding: 22px;
  }

  .doc h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .actions,
  .legal-footer-inner {
    display: grid;
  }

  .button {
    width: 100%;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  body::before,
  .legal-header,
  .legal-footer,
  .back,
  .actions {
    display: none !important;
  }

  .legal-shell {
    width: auto;
  }

  .doc {
    padding: 0;
  }

  .doc-card {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .doc h1,
  .doc h2,
  .doc p,
  .doc li {
    color: #000;
  }
}
