@font-face {
  font-family: "CMU Typewriter Text";
  src: url("/fonts/cmu-typewriter-text-500-roman.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "CMU Typewriter Text";
  src: url("/fonts/cmu-typewriter-text-700-roman.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --field-top: #0a4b59;
  --field-mid: #0f4350;
  --field-low: #12404a;
  --mass: #010405;
  --light: #f2fdff;
  --body: rgba(242, 253, 255, 0.76);
  --meta: rgba(242, 253, 255, 0.58);
  --edge: rgba(242, 253, 255, 0.32);
  --signal: #d90313;
}

* { box-sizing: border-box; }

html { background: var(--field-mid); }

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  color: var(--light);
  background: linear-gradient(180deg, var(--field-top), var(--field-mid) 55%, var(--field-low));
  font-family: "CMU Typewriter Text", "Courier New", monospace;
  font-size: 17px;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background: radial-gradient(circle at 16% 12%, rgba(242, 253, 255, 0.12), transparent 34%);
}

.legal-particles {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

a { color: inherit; }

.legal-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: transparent;
  border: 0;
}

.legal-brand {
  font-weight: 700;
  text-decoration: none;
  text-transform: lowercase;
}

.legal-nav-links {
  display: flex;
  gap: 1rem;
  margin-left: auto;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.legal-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 1180px);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.legal-hero {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 900px;
  margin-bottom: clamp(4rem, 9vw, 7rem);
}

.legal-kicker,
.legal-updated,
.status-label {
  color: var(--meta);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.legal-section-number {
  color: rgba(242, 253, 255, 0.12);
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 700;
  line-height: 0.8;
}

.legal-kicker::before,
.status-label::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.7rem;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 9px rgba(217, 3, 19, 0.62);
}

h1 {
  max-width: 10ch;
  margin: 0.28em 0 0.18em;
  font-size: clamp(3.4rem, 11vw, 9rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.legal-lead {
  max-width: 58ch;
  margin: 1.7rem 0 0;
  color: var(--body);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.legal-mass {
  position: relative;
  width: min(100%, 980px);
  margin-left: auto;
  padding: 0 0 clamp(3rem, 8vw, 7rem);
}

.legal-section {
  display: grid;
  grid-template-columns: minmax(5rem, 0.25fr) minmax(0, 1fr);
  gap: clamp(1rem, 5vw, 5rem);
  padding: clamp(2.3rem, 5vw, 4rem) clamp(0rem, 2vw, 1.5rem);
  border-top: 1px solid var(--edge);
}

.legal-section:first-child { border-top: 0; }

.legal-section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1.08;
}

.legal-section:nth-child(even) {
  margin-right: clamp(0rem, 6vw, 5rem);
}

.legal-section p,
.legal-section li { color: var(--body); }

.legal-section p { max-width: 64ch; margin: 0 0 1rem; }
.legal-section ul { max-width: 62ch; margin: 0; padding-left: 1.2rem; }
.legal-section li + li { margin-top: 0.55rem; }

.legal-contact {
  display: inline-block;
  margin-top: 1rem;
  color: var(--light);
}

.license-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.8rem;
}

.status-mass {
  width: 100%;
  padding: clamp(2rem, 7vw, 6rem);
  background: transparent;
  min-height: min(620px, 75vh);
  display: grid;
  align-content: center;
}

.status-title { max-width: 12ch; }

.status-copy {
  max-width: 56ch;
  color: var(--body);
}

.status-action {
  width: max-content;
  margin-top: 1.6rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--light);
  text-decoration: none;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.8rem 1.8rem;
}

.license-document-action {
  color: var(--body);
  border-bottom-color: var(--edge);
}

.delivery-options {
  width: min(100%, 650px);
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--edge);
}

.delivery-option {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-height: 3.2rem;
}

.delivery-label {
  color: var(--meta);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.delivery-choice {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 2.2rem);
}

.delivery-choice button {
  appearance: none;
  padding: 0.35rem 0;
  border: 0;
  border-bottom: 1px solid transparent;
  color: var(--meta);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.delivery-choice button:hover,
.delivery-choice button:focus-visible,
.delivery-choice button.is-active {
  color: var(--light);
  border-bottom-color: var(--light);
  outline: 0;
}

.delivery-choice button:disabled {
  color: rgba(242, 253, 255, 0.28);
  border-bottom-color: transparent;
  cursor: wait;
}

.mix-settings {
  min-height: 1.5em;
  margin: 0.8rem 0 0;
  color: var(--meta);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.status-detail {
  min-height: 1.5em;
  margin-top: 1rem;
  color: var(--meta);
  font-size: 0.82rem;
}

@media (max-width: 700px) {
  .legal-nav { align-items: flex-start; }
  .legal-nav-links { gap: 0.65rem; font-size: 0.68rem; }
  .legal-hero { min-height: 48vh; }
  .legal-mass { margin-left: 0; padding: 0 0 3rem; }
  .legal-section { grid-template-columns: 1fr; gap: 0.8rem; }
  .legal-section:nth-child(even) { margin-right: 0; }
  .status-mass { padding: 2rem 1.2rem; }
  .delivery-option { grid-template-columns: 1fr; gap: 0.2rem; padding: 0.45rem 0; }
}
