/* Load the shared palette for visitors with a cached page shell. */
@import url("./theme.css?v=20260906theme1");

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font: 400 16px/1.65 var(--ui-font);
  background: var(--bg);
}

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

a:hover {
  color: var(--gold);
}

:where(a, button, summary):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--bg);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.legal-static-header,
.legal-static-shell,
.legal-static-footer {
  width: min(900px, calc(100% - 36px));
  margin-inline: auto;
}

.legal-static-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.legal-static-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.legal-static-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.legal-static-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.legal-static-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--muted);
  font-weight: 600;
}

.legal-static-shell {
  padding: 42px 0 24px;
}

.legal-static-hero {
  margin-bottom: 32px;
}

.page-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
.support-card h3 {
  font-family: var(--display-font);
  text-wrap: pretty;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.legal-meta {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
}

.legal-document {
  display: grid;
  gap: 32px;
  max-width: 800px;
  padding: 30px 0;
}

.legal-contents {
  border-block: 1px solid var(--line);
}

.legal-contents summary {
  padding: 14px 4px;
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}

.legal-contents summary span {
  margin-left: 12px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
}

.legal-contents ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 32px;
  margin: 0 0 22px;
  padding-left: 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-contents a {
  display: inline-block;
  min-height: 28px;
}

.legal-section {
  scroll-margin-top: 24px;
}

.legal-section + .legal-section {
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.legal-callout {
  padding: 18px;
  border-left: 2px solid var(--gold);
  background: var(--surface);
}

.legal-callout p:last-child,
.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 4vw, 1.85rem);
}

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

.legal-section ul,
.legal-section ol {
  margin: 12px 0 0;
  padding-left: 24px;
}

.legal-section li + li {
  margin-top: 7px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}

.support-card {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.support-card h3 {
  margin: 0 0 8px;
  font-size: 1.55rem;
}

.support-card p {
  margin: 0;
  color: var(--muted);
}

.support-card a {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
}

.support-shortcuts,
.support-contact {
  margin-top: 38px;
}

.support-shortcuts > h2,
.support-contact > h2 {
  margin: 0 0 14px;
  font-size: 2rem;
}

.support-shortcut-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.support-shortcut-list li {
  border-top: 1px solid var(--line);
}

.support-shortcut-list a {
  display: grid;
  gap: 5px;
  height: 100%;
  padding: 18px 0;
  text-decoration: none;
}

.support-shortcut-list strong {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--text);
}

.support-shortcut-list strong span {
  color: var(--gold);
}

.support-shortcut-list a:hover strong,
.support-shortcut-list a:focus-visible strong {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.support-shortcut-list a > span,
.support-contact-copy,
.support-safety p {
  color: var(--muted);
}

.support-contact-copy {
  max-width: 760px;
  margin: 0 0 22px;
}

.support-safety {
  margin: 24px 0 12px;
  padding: 8px 0 8px 20px;
  border-left: 2px solid var(--gold);
}

.support-safety h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.support-safety p {
  margin: 0;
}

.support-card-wide {
  grid-column: 1 / -1;
}

.legal-static-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
}

.legal-static-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.legal-static-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

@media (max-width: 660px) {
  .legal-static-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-static-nav {
    justify-content: flex-start;
  }

  .legal-static-shell {
    padding-top: 20px;
  }

  .support-grid,
  .support-shortcut-list,
  .legal-contents ol {
    grid-template-columns: 1fr;
  }

  .support-card-wide {
    grid-column: auto;
  }
}

/* theme-exception: print — use a legible, ink-friendly print palette. */
@media print {
  :root {
    color-scheme: light;
    --bg: #fff;
    --text: #111;
    --muted: #333;
    --line: #ccc;
    --surface: #fff;
    --gold: #6b4b18;
    --cyan: #222;
  }

  body {
    font-size: 11pt;
    line-height: 1.5;
  }

  .skip-link,
  .legal-static-nav,
  .legal-contents,
  .legal-static-footer nav {
    display: none;
  }

  .legal-static-header,
  .legal-static-shell,
  .legal-static-footer,
  .legal-document {
    width: 100%;
    max-width: none;
  }

  .legal-static-shell {
    padding-top: 24px;
  }

  h1 {
    font-size: 30pt;
  }

  h2 {
    break-after: avoid;
  }

  .legal-document {
    display: block;
    padding: 0;
  }

  .legal-section {
    margin-top: 20px;
  }

  .legal-section + .legal-section {
    padding-top: 0;
    border-top: 0;
  }

  p,
  li {
    orphans: 3;
    widows: 3;
  }

  .legal-callout,
  .support-card,
  .support-safety {
    break-inside: avoid;
  }
}
