:root {
  color-scheme: dark;
  --ink: #e6edf3;
  --muted: #9fb0bf;
  --line: rgba(150, 190, 235, .16);
  --bg: #0f1a24;
  --card: #152331;
  --raised: rgba(150, 190, 235, .09);
  --blue: #8dbbee;
  --orange: #e8541f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
img { display: block; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 12px 18px; background: #fff; color: #153f56; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Header */
.site-header { background: var(--bg); color: #fff; border-bottom: 1px solid var(--line); }
.site-header-inner, .site-footer-inner, .page-layout { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-size: 18px; font-weight: 750; letter-spacing: -.02em; }
.brand { position: relative; }
.brand img { position: relative; display: block; height: 48px; width: auto; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; }
.site-nav a:hover { background: rgba(255, 255, 255, .16); }
.site-nav a[aria-current="page"] { background: rgba(255, 255, 255, .92); color: #153f56; }

/* Legal pages */
.page-layout { flex: 1; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-block: 56px 80px; }
.overview-layout { display: block; max-width: 940px; }
.sidebar { align-self: start; position: sticky; top: 24px; display: grid; gap: 32px; }
.eyebrow { margin: 0 0 14px; font-size: 11px; line-height: 1.6; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.doc-nav ul, .contents ol { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; }
.doc-nav a { display: block; padding: 7px 12px; margin-inline: -12px; border-radius: 8px; font-size: 14px; text-decoration: none; }
.doc-nav a:hover { background: var(--raised); }
.doc-nav a[aria-current="page"] { background: rgba(255, 255, 255, .16); color: #fff; font-weight: 600; }
.contents ol { gap: 10px; }
.contents a { font-size: 13px; line-height: 1.5; text-decoration: none; color: var(--muted); }
.contents a:hover { color: var(--ink); text-decoration: underline; }
main { min-width: 0; }
h1, h2, h3, #main { scroll-margin-top: 24px; }
h1 { margin: 0; max-width: 18ch; font-size: clamp(2.25rem, 4.5vw, 3.5rem); font-weight: 600; line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.intro { max-width: 52ch; margin: 20px 0 32px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.draft { margin-bottom: 32px; padding: 16px 20px; border: 1px solid rgba(232, 190, 90, .35); border-left: 3px solid #e0a82e; border-radius: 0 8px 8px 0; background: rgba(232, 190, 90, .12); color: #f0d9a0; font-size: 13px; line-height: 1.65; }
.draft strong { display: block; margin-bottom: 2px; }
.document-body { font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.document-body > :first-child { margin-top: 0; }
.document-body p { margin-block: 14px; }
.document-body h2 { margin: 44px 0 14px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 22px; font-weight: 600; letter-spacing: -.025em; line-height: 1.35; }
.document-body h3 { margin: 28px 0 8px; font-size: 17px; font-weight: 600; }
.document-body ul, .document-body ol { padding-left: 24px; }
.document-body li { margin-block: 10px; padding-left: 4px; }
.document-body li::marker { color: #8fb4cc; font-weight: 600; }
.doc-meta { color: var(--muted); font-size: 15px; }
.table-wrap { overflow-x: auto; margin: 1em 0; }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
.table-wrap th, .table-wrap td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.table-wrap th { background: var(--raised); }
mark { color: #f0d9a0; background: rgba(232, 190, 90, .22); padding: .1em .2em; border-radius: 3px; }
.doc-group { margin-top: 40px; }
.document-body .doc-group h2 { margin: 0; padding: 0; border: 0; font-size: 24px; }
.group-intro { margin: 6px 0 18px; color: var(--muted); }
.document-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.document-card { display: block; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-decoration: none; transition: border-color .15s, transform .15s; }
.document-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.document-card h3 { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-size: 18px; }
.document-card h3 span { color: var(--orange); font-weight: 400; }
.document-card p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.document-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; font-size: 13px; }

/* Footer */
.site-footer { background: #131f2b; color: #fff; border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr) minmax(0, 1fr); gap: 32px 48px; padding-block: 48px 28px; font-size: 14px; }
.footer-brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-brand img { display: block; height: 40px; width: auto; }
.footer-about p { margin: 8px 0 0; max-width: 32ch; color: rgba(255, 255, 255, .72); line-height: 1.6; }
.footer-about a { color: inherit; }
.footer-heading { margin: 0 0 8px; font-size: 11px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.footer-col ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.footer-col-legal ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; color: rgba(255, 255, 255, .72); }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-copyright { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: rgba(255, 255, 255, .56); }

/* Homepage hero */
.hero-page { background: #131f2b; color: #fff; }
.hero-page .site-header { border-bottom: 0; position: absolute; inset: 0 0 auto 0; z-index: 2; background: linear-gradient(180deg, rgba(6, 15, 26, .82) 0%, rgba(6, 15, 26, .5) 60%, rgba(6, 15, 26, 0) 100%); padding-bottom: 28px; }
.hero {
  flex: 1; min-height: 100svh; display: grid; place-items: center; padding: 120px 24px 72px; text-align: center;
  background:
    linear-gradient(180deg, rgba(8, 20, 30, .6) 0%, rgba(12, 24, 36, .22) 34%, rgba(16, 26, 36, .55) 72%, #131f2b 100%),
    url("/assets/homepage-mobile.jpg") center / cover no-repeat;
}
.hero-inner { max-width: 760px; }
.hero h1 { max-width: none; font-size: clamp(2.8rem, 9vw, 5.5rem); font-weight: 700; letter-spacing: -.05em; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.hero .tagline { margin: 20px auto 0; max-width: 34em; font-size: clamp(1.05rem, 2.6vw, 1.4rem); line-height: 1.55; color: rgba(255, 255, 255, .92); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 32px 0 0; padding: 0; list-style: none; }
.chips li { padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; background: rgba(255, 255, 255, .12); backdrop-filter: blur(6px); font-size: 14px; font-weight: 500; }
.status { display: inline-block; margin-top: 36px; padding: 12px 22px; border-radius: 999px; background: var(--orange); font-size: 15px; font-weight: 650; }
.center-page { background: var(--bg); }
.message { flex: 1; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 64px 24px; text-align: center; }
.message h1 { max-width: none; }
.message p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.button { display: inline-block; margin-top: 8px; padding: 12px 24px; border-radius: 999px; background: var(--orange); color: #fff; font-weight: 600; text-decoration: none; }
.button:hover { background: #f06a36; }
[hidden] { display: none !important; }
.route-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.button-secondary { background: transparent; border: 1px solid var(--line); }
.button-secondary:hover { background: var(--card); }
.message .route-hint { max-width: 40ch; font-size: 14px; }

@media (min-width: 900px) { .hero { background-image: linear-gradient(180deg, rgba(8, 20, 30, .6) 0%, rgba(12, 24, 36, .22) 34%, rgba(16, 26, 36, .55) 72%, #131f2b 100%), url("/assets/homepage.jpg"); } }
@media (max-width: 900px) {
  .site-header-inner, .site-footer-inner, .page-layout { width: calc(100% - 48px); }
  .page-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 32px; }
  .document-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header-inner, .site-footer-inner, .page-layout { width: calc(100% - 32px); }
  .site-nav a { padding: 8px 10px; }
  .page-layout { grid-template-columns: 1fr; gap: 24px; padding-block: 28px 48px; }
  .sidebar { position: static; gap: 0; }
  .contents { display: none; }
  .doc-nav ul { display: flex; flex-wrap: wrap; gap: 8px; }
  .doc-nav a { margin: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
  .site-footer-inner { grid-template-columns: 1fr 1fr; padding-block: 32px; }
  .footer-about, .footer-col-legal { grid-column: 1 / -1; }
  .intro { font-size: 16px; }
  .document-body h2 { font-size: 21px; margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) { .document-card { transition: none; } .document-card:hover { transform: none; } }
@media print {
  :root { color: #000; background: #fff; --ink: #000; --muted: #333; --line: #bbb; --raised: #eee; }
  mark, .draft { color: #000; background: #fff3c4; }
  .site-header, .sidebar, .document-end, .site-footer, .skip { display: none; }
  .page-layout { display: block; width: 100%; padding-block: 24px; }
  .document-body { font-size: 11pt; }
  .document-body h2 { break-after: avoid; }
  .document-card, .draft { break-inside: avoid; }
}
