@font-face {
  font-family: Inter;
  src: url("Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  color: var(--brand-white);
  background: var(--brand-navy);
  --surface: color-mix(in srgb, var(--brand-blue) 56%, var(--brand-navy));
  --line: #355785;
  --muted: #b6c8e3;
  --accent: var(--brand-highlight);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 74% 8rem, var(--brand-bright-blue) 0, transparent 45rem); }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #8cc9ff; outline-offset: 4px; }
.wrap { width: min(100% - 2 * clamp(1rem, 4vw, 3rem), 76rem); margin-inline: auto; }
.skip { position: absolute; inset: .5rem auto auto .5rem; transform: translateY(-200%); padding: .6rem; background: var(--surface); z-index: 1; }
.skip:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); background: var(--brand-navy); }
.header-inner { min-height: 4.65rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; gap: .55rem; align-items: center; font-weight: 600; text-decoration: none; white-space: nowrap; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(.55rem, 1.65vw, 1.5rem); }
.site-nav a, .nav-button { color: var(--muted); font-size: .875rem; text-decoration: none; }
.nav-button { background: transparent; padding: 0; border: 0; }
.site-nav a:hover, .nav-button:hover { color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.65rem; padding: .55rem .9rem; border: 1px solid transparent; border-radius: .55rem; white-space: nowrap; text-decoration: none; font-size: .875rem; font-weight: 600; }
.button-primary { background: var(--accent); color: var(--brand-navy); }
.button-primary:hover { background: #c2e6ff; }
.button-outline { border-color: var(--line); background: var(--brand-blue); color: var(--brand-white); }
.button-outline:hover { background: var(--brand-bright-blue); }

h1 { max-width: 12ch; font-size: clamp(2.65rem, 5.2vw, 5rem); font-weight: 600; line-height: 1.02; letter-spacing: -.065em; }
.fine-print { margin-top: .75rem; color: var(--muted); font-size: .875rem; line-height: 1.55; }

h2 { font-size: clamp(1.45rem, 2.7vw, 2.05rem); font-weight: 600; letter-spacing: -.045em; }
h3 { font-size: 1rem; font-weight: 600; }
.section-note, .tile p { margin-top: .5rem; color: var(--muted); line-height: 1.6; }
.tile { padding: clamp(1rem, 2vw, 1.35rem); background: var(--surface); border: 1px solid var(--line); border-radius: .75rem; }
.legal-list { display: flex; flex-wrap: wrap; gap: .65rem 1.5rem; padding: 0; margin-top: 1rem; list-style: none; }
.legal-list li { padding: .35rem 0; color: #dae5f4; }

dialog { max-width: min(calc(100% - 2rem), 27rem); color: inherit; background: var(--surface); border: 1px solid #405575; border-radius: .8rem; padding: 1.35rem; }
dialog::backdrop { background: #060c15bf; }
dialog p { color: var(--muted); margin-block: .75rem 1rem; line-height: 1.55; }

[hidden] { display: none !important; }
.content-page { max-width: 48rem; padding-block: clamp(2rem, 5vw, 4rem); }
.content-page h1 { max-width: none; font-size: clamp(2.4rem, 5vw, 3.65rem); }
.content-page .tile { margin-top: 1.25rem; }
.content-page .legal-list a:hover { color: var(--accent); }
.legal-copy { white-space: pre-wrap; overflow-wrap: anywhere; }
.legal-preview { display: grid; gap: .75rem; overflow-wrap: anywhere; }
.legal-preview h2 { margin-top: 1.2rem; font-size: clamp(1.2rem, 3vw, 1.5rem); }
.legal-preview h2:first-child { margin-top: 0; }
.legal-preview p, .legal-preview ul { margin: 0; }
.legal-preview ul { padding-inline-start: 1.4rem; }
.legal-preview li + li { margin-top: .35rem; }
.legal-preview hr { width: 100%; margin: .75rem 0 0; border: 0; border-top: 1px solid currentColor; opacity: .25; }
.auth-form { display: grid; gap: .9rem; }
.auth-form label:not(.check-label) { display: grid; gap: .4rem; }
.auth-form :is(input:not([type="checkbox"]), select) {
  padding: .6rem .7rem;
  min-width: 0;
  min-height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: var(--brand-navy);
  color: inherit;
  font: inherit;
}
.auth-form .button { justify-self: start; }
.auth-form .button:disabled { opacity: .6; cursor: default; }
.check-label { display: flex; align-items: baseline; gap: .5rem; }

@media (max-width: 54rem) {
  .header-inner { flex-wrap: wrap; gap: .7rem; padding-block: .75rem; }
  .site-nav { order: 1; width: 100%; border-top: 1px solid var(--line); padding-top: .7rem; }
  h1 { max-width: 16ch; }
}

@media (max-width: 23rem) {
  .header-inner .brand { gap: .4rem; }
  .header-inner .brand-wordmark { width: 6.35rem; }
}
