:root {
  --page-bg: #f4f7fb;
  --paper: #ffffff;
  --ink: #2f3b4f;
  --muted: #72819a;
  --blue: #286bb3;
  --blue-dark: #203f69;
  --blue-soft: #eef5fc;
  --orange: #ea7618;
  --warning-bg: #fffaf0;
  --line: #dce5f0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  text-decoration: underline;
}

.site-shell {
  min-height: 100vh;
  padding: 24px;
}

.legal-nav {
  width: min(100%, 1040px);
  min-height: 62px;
  margin: 0 auto 18px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--blue-dark);
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: #53627a;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav-links a:hover {
  background: var(--blue-soft);
  color: var(--blue);
  text-decoration: none;
}

.nav-links a.active {
  background: var(--blue);
  color: #fff;
}

.legal-document {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 68px 76px 80px;
  background: var(--paper);
  border: 1px solid rgba(32, 63, 105, 0.08);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(25, 52, 85, 0.08);
}

.document-header {
  margin-bottom: 26px;
}

.document-header h1 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(27px, 4vw, 35px);
  line-height: 1.2;
  text-align: center;
  letter-spacing: -0.025em;
}

.title-rule {
  height: 3px;
  margin: 20px 0 20px;
  background: var(--blue);
}

.effective-date {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.legal-document p {
  margin: 0 0 18px;
}

.legal-document section {
  margin-top: 32px;
}

.legal-document h2 {
  position: relative;
  margin: 0 0 16px;
  padding-left: 13px;
  color: var(--blue);
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.legal-document h2::before {
  position: absolute;
  inset: 2px auto 2px 0;
  width: 5px;
  background: var(--blue);
  content: "";
}

.legal-document h3 {
  margin: 20px 0 12px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
}

.legal-document strong {
  font-weight: 700;
}

.legal-document ul {
  margin: 0 0 20px;
  padding-left: 28px;
}

.legal-document li {
  margin-bottom: 9px;
  padding-left: 4px;
}

.strong-notice {
  font-weight: 700;
}

.warning-box {
  margin-top: 22px;
  padding: 26px 28px 25px;
  background: var(--warning-bg);
  border-left: 5px solid var(--orange);
}

.warning-box h3:first-child,
.warning-box p:first-child {
  margin-top: 0;
}

.warning-box p:last-child,
.warning-box ul:last-child,
.warning-box li:last-child {
  margin-bottom: 0;
}

.site-footer {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 28px 4px 16px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
    line-height: 1.65;
  }

  .site-shell {
    padding: 10px;
  }

  .legal-nav {
    min-height: auto;
    margin-bottom: 8px;
    padding: 12px 4px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .nav-links a {
    padding: 8px 10px;
    text-align: center;
  }

  .legal-document {
    padding: 38px 24px 48px;
    border-radius: 8px;
  }

  .document-header h1 {
    text-align: left;
  }

  .title-rule {
    margin: 16px 0;
  }

  .effective-date {
    font-size: 13px;
    text-align: left;
  }

  .legal-document section {
    margin-top: 28px;
  }

  .legal-document h2 {
    font-size: 20px;
  }

  .legal-document h3 {
    font-size: 17px;
  }

  .warning-box {
    margin-right: -4px;
    margin-left: -4px;
    padding: 22px 20px;
  }

  .site-footer {
    padding-right: 8px;
    padding-left: 8px;
    flex-direction: column;
    gap: 4px;
  }
}

@media print {
  body {
    background: #fff;
    font-size: 11pt;
  }

  .site-shell {
    padding: 0;
  }

  .legal-nav,
  .site-footer {
    display: none;
  }

  .legal-document {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .warning-box {
    break-inside: avoid;
  }
}
