/* Legal, support and attribution pages share NeoCut's public-page palette. */
:root {
  color-scheme: dark;
  --page-bg: #141414;
  --page-panel: #242424;
  --page-text: #f5f5f5;
  --page-muted: #c2c5c6;
  --page-accent: #00b8c5;
  --page-line: #3d4142;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--page-bg); color: var(--page-text); font: 400 16px/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: #64dbe3; text-underline-offset: .22em; text-decoration-thickness: 1px; white-space: normal; word-break: normal; overflow-wrap: anywhere; }
a:hover { color: #b0f6fa; }
a:focus-visible { outline: 3px solid #64dbe3; outline-offset: 5px; border-radius: 4px; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 10px 16px; background: var(--page-panel); }
.skip-link:focus { top: 12px; }
.shell { width: min(100% - 64px, 860px); margin-inline: auto; }
header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 24px 0 20px; border-bottom: 1px solid var(--page-line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 24px; font-weight: 730; line-height: 1.15; letter-spacing: -.7px; text-decoration: none; color: var(--page-text); white-space: nowrap; }
.brand img { flex: none; border-radius: 10px; }
.brand small { display: block; margin-top: 6px; color: var(--page-muted); font-size: 9px; letter-spacing: 1.8px; font-weight: 500; }
nav { display: flex; align-items: center; gap: 10px 20px; flex-wrap: wrap; min-width: 0; }
nav a { font-size: 13px; white-space: nowrap; }
nav a[aria-current="page"] { color: #b0f6fa; text-decoration-thickness: 2px; }
main { padding: 48px 0; min-width: 0; }
.eyebrow { margin-bottom: 15px; color: #64dbe3; font-size: 11px; letter-spacing: 1.8px; font-weight: 750; text-transform: uppercase; }
h1, h2, h3 { color: var(--page-text); line-height: 1.2; font-weight: 680; overflow-wrap: break-word; text-wrap: balance; }
h1 { font-size: clamp(32px, 4.5vw, 48px); letter-spacing: -1.7px; margin: 0 0 22px; }
h2 { font-size: clamp(23px, 3vw, 29px); letter-spacing: -.7px; margin: 0 0 16px; }
h3 { font-size: 19px; letter-spacing: -.2px; }
p, li, address { max-width: 72ch; color: var(--page-muted); text-wrap: pretty; overflow-wrap: break-word; hyphens: none; }
p { margin: 0 0 16px; }
.intro { font-size: 18px; max-width: 60ch; color: #d8dcdd; }
.meta, small { font-size: 13px; color: #adb5b7; }
.card { min-width: 0; border: 1px solid #3b4142; background: var(--page-panel); border-radius: 12px; padding: 28px; margin-top: 22px; }
.card > :last-child { margin-bottom: 0; }
ul { padding-left: 22px; color: var(--page-muted); }
li { margin: 8px 0; }
li::marker { color: var(--page-accent); }
strong { color: var(--page-text); }
.button { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; min-height: 44px; background: var(--page-accent); color: #071a1c; padding: 10px 18px; border: 1px solid var(--page-accent); border-radius: 7px; font-size: 14px; line-height: 1.5; font-weight: 700; text-align: center; text-decoration: none; margin: 8px 0 16px; }
.button:hover { background: #43d2dc; border-color: #43d2dc; color: #071a1c; }
header .button { margin: 0; }
.email { font-size: clamp(16px, 4.4vw, 26px); font-weight: 650; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid .card { margin-top: 0; }
.policy-callout { display: block; }
footer { padding: 29px 0 34px; border-top: 1px solid var(--page-line); display: flex; gap: 14px; flex-direction: column; font-size: 12px; color: var(--page-muted); }
footer nav { gap: 9px 18px; }
footer nav a { color: var(--page-muted); font-size: 12px; }
.credits-page main > h2 { margin-top: 40px; }
.credits-page main > h3 { margin-top: 26px; }
.credits-page pre { max-width: 100%; margin: 18px 0 28px; padding: 20px; border: 1px solid var(--page-line); border-radius: 10px; background: var(--page-panel); color: var(--page-muted); white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; }
@media (max-width: 680px) {
  .shell { width: calc(100% - 36px); }
  header { gap: 18px; padding-block: 19px 17px; }
  .brand { font-size: 22px; }
  .brand img { width: 36px; height: 36px; }
  header nav { gap: 10px 18px; }
  header .button { font-size: 12px; padding-inline: 13px; }
  main { padding-block: 34px; }
  h1 { letter-spacing: -1px; }
  .intro { font-size: 17px; }
  .card { padding: 23px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .credits-page pre { padding: 16px; }
}
@media (max-width: 360px) { .card { padding: 18px; } }
@media print {
  :root { color-scheme: light; }
  body { background: white; color: black; }
  .shell { width: 100%; }
  h1, h2, h3, strong, a { color: black; }
  p, li, address, .intro, .meta, small { color: #333; }
  .card, .credits-page pre { background: white; border-color: #aaa; }
  h2, h3 { break-after: avoid; }
  header, footer, .skip-link, .button { display: none; }
  main { padding-block: 0; }
}
