/* Scrubby legal pages. System fonts only: no third-party requests from a privacy page. */

:root {
  --navy: #18204a;
  --navy-deep: #111735;
  --mint: #6ff2c4;
  --mint-ink: #0b7a57;

  --bg: #f4f5fa;
  --surface: #ffffff;
  --text: #1c2142;
  --muted: #5a6082;
  --border: #e1e3ee;
  --link: #0b7a57;
  --callout-bg: #eafcf5;
  --callout-border: #b6f0da;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0e1330;
    --surface: #161d45;
    --text: #e7e9f5;
    --muted: #a3a8c7;
    --border: #262e5c;
    --link: #6ff2c4;
    --callout-bg: #13293a;
    --callout-border: #1f4d4a;
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --bg: #0e1330;
  --surface: #161d45;
  --text: #e7e9f5;
  --muted: #a3a8c7;
  --border: #262e5c;
  --link: #6ff2c4;
  --callout-bg: #13293a;
  --callout-border: #1f4d4a;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
}

/* Header */

.site-header {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.site-header::before {
  /* Faint oversized link mark, echoing the banner. */
  content: '';
  position: absolute;
  inset: -40% auto auto -8%;
  width: 420px;
  height: 420px;
  background: url('assets/icon.png') center / contain no-repeat;
  /* The icon's navy square matches the header, so only the white mark shows. */
  opacity: 0.08;
  pointer-events: none;
}

.header-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}

.top-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-nav ul a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  color: #d9dcf0;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.top-nav ul a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.top-nav ul a[aria-current='page'] {
  color: var(--navy);
  background: var(--mint);
}

.hero {
  margin-top: 40px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero p {
  margin: 10px 0 0;
  color: var(--mint);
  font-weight: 600;
}

/* Content */

main {
  max-width: 760px;
  margin: -20px auto 0;
  padding: 0 16px 48px;
  position: relative;
}

.doc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px clamp(20px, 5vw, 48px) 40px;
}

.doc > :first-child {
  margin-top: 0;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.callout {
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--callout-bg);
  border: 1px solid var(--callout-border);
  border-radius: 12px;
}

.callout p {
  margin: 0;
}

.callout p + p,
.callout ul {
  margin-top: 8px;
}

h2 {
  margin: 40px 0 8px;
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  scroll-margin-top: 16px;
}

h3 {
  margin: 24px 0 4px;
  font-size: 1.05rem;
}

p,
ul,
ol {
  margin: 12px 0;
}

ul,
ol {
  padding-left: 1.4em;
}

.doc li + li {
  margin-top: 6px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.35em;
  overflow-wrap: anywhere;
}

.toc {
  margin: 24px 0 8px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.toc strong {
  display: block;
  margin-bottom: 4px;
}

.toc ol {
  margin: 0;
  columns: 2 220px;
  column-gap: 32px;
}

.toc li {
  break-inside: avoid;
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

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

th {
  font-weight: 700;
  white-space: nowrap;
}

/* Footer */

.site-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 40px;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--muted);
}

@media print {
  .site-header::before,
  .top-nav ul,
  .skip-link {
    display: none;
  }

  .site-header {
    background: none;
    color: #000;
  }

  .hero p {
    color: #000;
  }

  .doc {
    border: none;
    padding: 0;
  }
}
