:root {
  font-family:
    "Avenir Next",
    Avenir,
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--audestra-soft-white);
  background: var(--audestra-night-navy);
  --line: rgba(220, 225, 230, 0.11);
  --line-strong: rgba(220, 225, 230, 0.19);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--audestra-night-navy);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 88% 2%, rgba(232, 59, 53, 0.1), transparent 26rem),
    linear-gradient(180deg, #08131f, var(--audestra-night-navy));
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(220, 225, 230, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 225, 230, 0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  pointer-events: none;
}

::selection {
  color: var(--audestra-white);
  background: rgba(232, 59, 53, 0.55);
}

button {
  appearance: none;
  cursor: pointer;
  font: inherit;
}

a:focus-visible,
button:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible {
  outline: 2px solid var(--audestra-red);
  outline-offset: 3px;
}

h1,
h2 {
  color: var(--audestra-white);
  font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.03em;
}

h1 {
  margin: 0.25rem 0 0;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.96;
}

h2 {
  margin: 0.25rem 0 0.65rem;
  font-size: 1.9rem;
  line-height: 1.08;
}

p {
  color: var(--audestra-muted-slate);
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 0.72rem;
  color: var(--audestra-red);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.primary-button {
  border: 0;
  color: var(--audestra-white);
  background: #c92f2a;
  box-shadow: 0 10px 26px rgba(232, 59, 53, 0.18);
}

.primary-button:hover {
  background: #f04c46;
  box-shadow: 0 14px 32px rgba(232, 59, 53, 0.28);
  transform: translateY(-2px);
}

.secondary-button {
  border: 1px solid var(--line-strong);
  color: var(--audestra-soft-white);
  background: transparent;
}

.secondary-button:hover {
  background: rgba(220, 225, 230, 0.08);
  border-color: rgba(220, 225, 230, 0.45);
}

.legal-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.legal-page-header {
  padding: 26px clamp(20px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
}

.legal-page-brand img {
  width: 160px;
}

.legal-page-content {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) 0 80px;
}

.legal-page-content h1 {
  margin-top: 4px;
}

.legal-page-effective {
  margin-top: 0;
  color: #8793a1;
  font-size: 0.85rem;
}

.legal-page-summary {
  max-width: 640px;
  color: #aeb8c1;
  font-size: 1.05rem;
  line-height: 1.55;
}

.legal-page-content section {
  margin-top: 30px;
}

.legal-page-content section h2 {
  font-size: 1.15rem;
}

.legal-page-content section p,
.legal-page-content section li {
  color: #c4ccd3;
  line-height: 1.6;
}

.legal-page-content a {
  color: var(--audestra-red);
}

.legal-page-content ul {
  margin: 0;
  padding-left: 22px;
}

.legal-page-content li {
  margin: 6px 0;
}

.legal-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.legal-page-cross-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--audestra-red);
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .primary-button:hover {
    transform: none;
  }
}

@media print {
  @page {
    margin: 1.4cm;
  }

  html,
  body {
    min-width: 0;
    min-height: 0;
    color: #14161a;
    background: #fff;
  }

  body::before {
    display: none;
  }

  .legal-page-header,
  .legal-page-actions,
  .legal-page-cross-link {
    display: none;
  }

  .legal-page-content {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .eyebrow,
  h1,
  h2,
  .legal-page-effective,
  .legal-page-summary,
  .legal-page-content section p,
  .legal-page-content section li {
    color: #14161a;
  }

  h1 {
    font-size: 22pt;
    line-height: 1.15;
  }

  .legal-page-content section h2 {
    font-size: 13pt;
    break-after: avoid;
  }

  .legal-page-content a {
    color: #14161a;
    text-decoration: underline;
  }

  .legal-page-content a[href^="https://"]::after {
    content: " (" attr(href) ")";
    font-size: 0.9em;
    font-weight: 400;
  }
}
