/*
  Shared styles for the static legal pages (privacy.html, terms.html).
  Same tokens as styles.css: warm near-black, ember/amber accent, soft depth.
*/

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

:root {
  --bg: #0b0908;
  --surface: #121010;
  --surface-2: #191514;
  --line: rgb(255 236 224 / 0.08);
  --line-strong: rgb(255 236 224 / 0.14);
  --fg: #f3ede8;
  --muted: #a89e97;
  --faint: #746a64;
  --accent: #ff7a45;
  --accent-2: #ffb547;
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 64rem;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(38rem 28rem at 20% 12%, rgb(255 122 69 / 0.16), transparent 70%),
    radial-gradient(34rem 24rem at 80% 2%, rgb(255 181 71 / 0.12), transparent 72%),
    radial-gradient(30rem 22rem at 55% 26%, rgb(255 77 109 / 0.07), transparent 70%);
  filter: blur(26px);
}

:focus-visible {
  /* Was written as [:focus-visible], which is not a valid selector and so never
     applied; the legal pages had no visible keyboard focus ring. */
  outline: 2px solid rgb(255 122 69 / 0.7);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgb(255 122 69 / 0.35);
  color: #fff;
}

a {
  color: var(--accent-2);
  text-decoration: none;
  text-underline-offset: 3px;
}

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

.site-head,
main,
.page-foot {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
}

.site-head {
  padding: 30px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.brand svg {
  width: 26px;
  height: 26px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 236 224 / 0.03);
  color: var(--muted);
  font-size: 0.82rem;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.back:hover {
  color: var(--fg);
  border-color: var(--line-strong);
  background: rgb(255 236 224 / 0.06);
}

main {
  padding: 60px 24px 88px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--accent-2);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

h1 {
  margin: 16px 0 0;
  width: fit-content;
  font-size: clamp(2.1rem, 5vw, 2.9rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.03em;
  background: linear-gradient(100deg, #ffe3cd, #ffb08a 42%, #ffc46b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.meta {
  display: grid;
  gap: 6px;
  margin-top: 30px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgb(255 236 224 / 0.045), rgb(255 236 224 / 0.014));
  box-shadow: inset 0 1px 0 rgb(255 236 224 / 0.06);
  font-size: 0.9rem;
  color: var(--muted);
}

.meta p {
  margin: 0;
}

h2 {
  margin: 46px 0 0;
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg);
}

p {
  margin: 12px 0 0;
  color: var(--muted);
}

strong {
  color: var(--fg);
  font-weight: 600;
}

ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.callout {
  margin-top: 18px;
  padding: 20px 22px;
  border: 1px solid rgb(255 122 69 / 0.26);
  border-radius: 18px;
  background: linear-gradient(180deg, rgb(255 122 69 / 0.1), rgb(255 122 69 / 0.035));
}

.callout p {
  margin: 8px 0 0;
  color: var(--fg);
}

.callout p:first-child {
  margin-top: 0;
}

.callout strong {
  color: var(--accent-2);
}

.page-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 26px 24px 52px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--faint);
}

.page-foot nav {
  display: flex;
  gap: 18px;
}

.page-foot a {
  color: var(--muted);
}

.page-foot a:hover {
  color: var(--fg);
}

@media (max-width: 560px) {
  .site-head {
    padding: 22px 20px 0;
  }

  main {
    padding: 42px 20px 64px;
  }

  .page-foot {
    padding: 24px 20px 44px;
  }
}

/* First stop for the Tab key: WCAG 2.4.1, bypass the repeated navigation. */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: #f3ede8;
  color: #0b0908;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 140ms ease;
}

.skip-link:focus { transform: none; }

/* Colour is never the only cue that text is a link (WCAG 1.4.1). */
main p a,
main li a,
.meta a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

/* Display face for legal page headings, matching the site. */
h1, h2 { font-family: "Space Grotesk", ui-sans-serif, sans-serif; letter-spacing: -.02em; }
