*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #013a54;
  --surface: #023e52;
  --deep: #012a37;
  --teal: #078a99;
  --teal-lt: #4cb8c6;
  --coral: #ee6c4d;
  --white: #ffffff;
  --white-70: rgba(255, 255, 255, 0.7);
  --white-50: rgba(255, 255, 255, 0.5);
  --white-20: rgba(255, 255, 255, 0.1);
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, sans-serif;
  background-color: var(--deep);
  color: var(--white);
  line-height: 1.7;
}

/* ── Navigation ───────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(1, 42, 55, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--white-20);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--white-70);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  color: var(--white);
}

/* ── Legal Document ───────────────────────────────────── */
.legal-doc {
  max-width: 800px;
  margin: 0 auto;
  padding: 100px 24px 80px;
}

.legal-doc h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2;
}

.legal-meta {
  color: var(--white-50);
  font-size: 14px;
  margin-bottom: 24px;
}

.legal-meta span {
  display: inline-block;
  margin-right: 24px;
}

.legal-disclaimer {
  background: rgba(238, 108, 77, 0.1);
  border: 1px solid rgba(238, 108, 77, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--white-70);
  font-style: italic;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ── Summary Box ──────────────────────────────────────── */
.summary-box {
  background: rgba(7, 138, 153, 0.1);
  border: 1px solid rgba(76, 184, 198, 0.3);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 40px;
}

.summary-box h2 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--teal-lt);
}

.summary-box p {
  color: var(--white-70);
  font-size: 15px;
  margin-bottom: 12px;
}

.summary-box p:last-child {
  margin-bottom: 0;
}

.summary-box ul {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.summary-box li {
  color: var(--white-70);
  font-size: 15px;
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
}

.summary-box li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--teal-lt);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
}

.summary-box--check li::before {
  content: "✓";
  left: 0;
  font-size: inherit;
  line-height: inherit;
}

.summary-box strong {
  color: var(--white);
}

/* ── Document Body ────────────────────────────────────── */
.legal-doc h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--white-20);
}

.legal-doc h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--teal-lt);
}

.legal-doc p {
  color: var(--white-70);
  font-size: 15px;
  margin-bottom: 16px;
}

.legal-doc strong {
  color: var(--white);
  font-weight: 600;
}

.legal-doc em {
  font-style: italic;
}

.legal-doc a {
  color: var(--teal-lt);
  text-decoration: none;
}

.legal-doc a:hover {
  text-decoration: underline;
}

.legal-doc ul,
.legal-doc ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-doc li {
  color: var(--white-70);
  font-size: 15px;
  margin-bottom: 6px;
}

.legal-doc .ref {
  font-size: 13px;
  color: var(--white-50);
  font-style: italic;
  margin-bottom: 16px;
}

/* ── Clause numbers (inline) ──────────────────────────── */
.legal-doc .clause-num {
  color: var(--teal-lt);
  font-weight: 600;
  margin-right: 6px;
}

/* ── Tables ────────────────────────────────────────────── */
.legal-doc table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14px;
}

.legal-doc thead th {
  background: rgba(7, 138, 153, 0.15);
  color: var(--white);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid rgba(76, 184, 198, 0.3);
}

.legal-doc tbody td {
  padding: 10px 14px;
  color: var(--white-70);
  border-bottom: 1px solid var(--white-20);
  vertical-align: top;
}

.legal-doc tbody tr:last-child td {
  border-bottom: none;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
}

.table-wrap table {
  min-width: 500px;
  margin-bottom: 0;
}

/* ── Placeholder marker ────────────────────────────────── */
.placeholder {
  background: rgba(238, 108, 77, 0.15);
  border: 1px dashed rgba(238, 108, 77, 0.4);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 13px;
  color: var(--coral);
  font-family: monospace;
}

/* ── Footer ───────────────────────────────────────────── */
footer {
  background: var(--deep);
  border-top: 1px solid var(--white-20);
  padding: 40px 24px;
  text-align: center;
}

footer p {
  color: var(--white-70);
  font-size: 14px;
}

footer a {
  color: var(--teal-lt);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 600px) {
  nav {
    padding: 14px 20px;
  }
  .nav-links {
    display: none;
  }
  .legal-doc {
    padding: 80px 16px 60px;
  }
  .legal-doc h1 {
    font-size: 26px;
  }
  .legal-doc h2 {
    font-size: 19px;
  }
}
