/* Haven: Terms of Use and Privacy Policy, in the home page's world: a sunset band for the title, the app's
   typefaces, and a contents rail that follows you down the page. The words themselves stay plain and easy
   to read. */

:root {
  color-scheme: dark;
  --ground: #0d0a16; --s1: #17121f; --s2: #201a2a; --line: #2b2338;
  --dusk: #8a3ffc; --magenta: #ff3e9d; --ember: #ff9440;
  --text: #f3eef5; --text2: #b4aabf; --text3: #8f859c;
  --grad: linear-gradient(90deg, var(--dusk), var(--magenta) 55%, var(--ember));
  --display: "Big Shoulders Display", "Noto Sans", "Arial Narrow", Impact, sans-serif;
  --body: "Hanken Grotesk", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --edge-l: max(16px, env(safe-area-inset-left, 0px));
  --edge-r: max(16px, env(safe-area-inset-right, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--ground); color: var(--text); font: 400 1.0625rem/1.65 var(--body); overflow-wrap: break-word; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--magenta); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Header ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 10px; padding-inline: max(var(--edge-l), calc((100% - 1200px) / 2)) max(var(--edge-r), calc((100% - 1200px) / 2));
  background: rgba(13, 10, 22, .72); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.bar > a { display: inline-flex; align-items: center; min-height: 44px; }
.bar img { height: 34px; width: auto; }
.bar nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 22px; }
.bar nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--text); }
.bar nav a[aria-current] { color: var(--magenta); }
.bar .get {
  min-height: 40px; padding: 0 16px; border-radius: 12px; color: #fff; font-weight: 600; text-decoration: none;
  background: var(--grad); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 8px 26px -10px rgba(255, 62, 157, .8);
}
@media (max-width: 640px) { .bar nav a:not(.get):not([aria-current]) { display: none; } .bar img { height: 28px; } }

/* ---------- The title band: a sun coming up over the horizon as you scroll ---------- */
.dawn { position: relative; isolation: isolate; overflow: hidden; min-height: min(62vh, 560px); display: flex; align-items: flex-end;
  padding-block: 120px 56px; padding-inline: max(var(--edge-l), calc((100% - 1200px) / 2)) max(var(--edge-r), calc((100% - 1200px) / 2));
  background: linear-gradient(180deg, #0d0a16 0%, #1a1030 38%, #3a1640 66%, #6b1f45 82%, #2a1020 100%); }
.dawn::before { content: ""; position: absolute; inset: 0; z-index: -3; opacity: .55;
  background-image: radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 40%, #fff, transparent), radial-gradient(1.5px 1.5px at 44% 12%, #fff, transparent),
    radial-gradient(1px 1px at 63% 30%, #fff, transparent), radial-gradient(1px 1px at 78% 14%, #fff, transparent), radial-gradient(1.5px 1.5px at 90% 36%, #fff, transparent), radial-gradient(1px 1px at 7% 48%, #fff, transparent); }
.dawn .sun { position: absolute; z-index: -2; inset-inline-end: 3%; bottom: 18%; width: min(40vw, 480px); aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(180deg, #ffd27a 0%, var(--ember) 30%, var(--magenta) 64%, var(--dusk) 100%);
  box-shadow: 0 0 120px 30px rgba(255, 110, 90, .28);
  -webkit-mask: linear-gradient(180deg, #000 0 46%, transparent 46%), repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 20px);
  mask: linear-gradient(180deg, #000 0 46%, transparent 46%), repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 20px);
  transform: translateY(var(--rise, 34%)); }
.dawn .horizon { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 18%;
  background: linear-gradient(180deg, rgba(13, 10, 22, .2), var(--ground) 80%); border-top: 1px solid rgba(255, 148, 64, .35); }
.dawn .horizon::before { content: ""; position: absolute; inset: 0; opacity: .5;
  background: repeating-linear-gradient(90deg, transparent 0 8%, rgba(255, 62, 157, .25) 8% calc(8% + 1px)); transform: perspective(240px) rotateX(58deg); transform-origin: top; }
@supports (animation-timeline: scroll()) {
  .dawn .sun { animation: rise linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
  @keyframes rise { from { transform: translateY(34%); } to { transform: translateY(-4%) scale(1.04); } }
}
.dawn .kicker { margin: 0 0 14px; font: 500 .8rem/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--text); display: inline-flex; align-items: center; gap: 10px; padding-block: 6px; padding-inline: 10px 12px; border-radius: 999px; background: rgba(13, 10, 22, .55); }
.dawn .kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 12px var(--magenta); }
h1 { margin: 0; font: 900 clamp(3.4rem, 11vw, 8.5rem)/.86 var(--display); text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; }
h1 em { font-style: normal; color: var(--magenta); text-shadow: 0 2px 0 rgba(13, 10, 22, .55), 0 6px 22px rgba(13, 10, 22, .85), 0 0 3px rgba(13, 10, 22, .7); }
.updated { margin: 18px 0 0; display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 999px; background: rgba(13, 10, 22, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: var(--text2); font: 500 .85rem/1.2 var(--mono); }

/* ---------- Body: contents on the left, the text on the right ---------- */
.page { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start;
  padding-block: 48px 96px; padding-inline: max(var(--edge-l), calc((100% - 1200px) / 2)) max(var(--edge-r), calc((100% - 1200px) / 2)); }
.toc { position: sticky; top: 84px; display: grid; gap: 2px; max-height: calc(100vh - 110px); overflow: auto; scrollbar-width: none; }
.toc b { font: 500 .72rem/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--text3); margin-bottom: 10px; }
.toc a { position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 7px 10px; border-radius: 10px; color: var(--text2); text-decoration: none; font-size: .9rem; line-height: 1.35; transition: background-color .2s, color .2s; }
.toc a span { font: 700 .95rem/1.3 var(--display); color: var(--text3); }
.toc a:hover { color: var(--text); background: rgba(138, 63, 252, .12); }
.toc a.on { color: var(--text); background: linear-gradient(100deg, rgba(138, 63, 252, .3), rgba(255, 62, 157, .12)); }
.toc a.on::before { content: ""; position: absolute; inset-inline-start: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--grad); }
.toc a.on span { color: var(--magenta); }

main { min-width: 0; max-width: 760px; }
.summary { position: relative; margin: 0 0 16px; padding: 22px 24px; border-radius: 18px; border: 1.5px solid transparent;
  background: linear-gradient(var(--s1), var(--s1)) padding-box, linear-gradient(135deg, var(--dusk), var(--magenta), var(--ember)) border-box;
  box-shadow: 0 30px 60px -36px rgba(255, 62, 157, .7); }
.summary p { margin: 0; max-width: none; font-size: 1.08rem; }
.summary strong { display: block; margin-bottom: 6px; font: 800 1.35rem/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
section { scroll-margin-top: 88px; padding-top: 28px; }
h2 { display: flex; align-items: baseline; gap: 16px; margin: 20px 0 12px; font: 700 clamp(1.5rem, 1.1rem + 1.2vw, 2rem)/1.15 var(--display); letter-spacing: .01em; text-transform: uppercase; text-wrap: balance; }
h2 .n { flex: none; font: 900 clamp(2.6rem, 2rem + 2vw, 3.6rem)/.8 var(--display); color: var(--magenta); -webkit-text-stroke: 1.5px var(--magenta); opacity: .9; }
@supports (-webkit-text-stroke: 1px red) { h2 .n { -webkit-text-fill-color: var(--ground); } }
p, li { max-width: 68ch; text-wrap: pretty; color: #ddd6e3; }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-inline-start: 0; list-style: none; display: grid; gap: 8px; }
li { position: relative; padding-inline-start: 22px; }
li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .7em; width: 8px; height: 2px; border-radius: 2px; background: var(--grad); }
strong { font-weight: 600; color: var(--text); }
.mono { font-family: var(--mono); font-size: .9em; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); color: var(--text); }

/* Sections slide up into place as they arrive. */
.js section { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .1, 1); }
.js section.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .page { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 32px; }
  .toc { display: none; }
  .dawn { min-height: 48vh; padding-top: 96px; padding-bottom: 40px; }
  /* On a narrow screen the title crosses the sun, so the sun sits back a little. */
  .dawn .sun { width: 78vw; inset-inline-end: -14vw; bottom: 16%; opacity: .6; }
}

/* ---------- Footer ---------- */
footer { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px;
  padding-block: 28px 40px; padding-inline: max(var(--edge-l), calc((100% - 1200px) / 2)) max(var(--edge-r), calc((100% - 1200px) / 2));
  border-top: 1px solid var(--line); color: var(--text3); font-size: .92rem; }
footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--grad); opacity: .6; }
footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text2); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .word { margin-inline-end: auto; display: inline-flex; align-items: center; gap: 12px; }
footer .word img { height: 26px; width: auto; }
@media (max-width: 640px) {
  footer { gap: 0 20px; }
  footer .word { flex: 1 1 100%; margin: 0 0 6px; }
}

/* ---------- Tables in the policies (what we keep, browser storage) ---------- */
.tbl { margin: 0 0 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--s1); }
.tbl table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { padding: 10px 12px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); color: #ddd6e3; }
.tbl th { font-weight: 600; color: var(--text); background: var(--s2); }
.tbl tr:last-child td { border-bottom: 0; }
h3 { margin: 18px 0 8px; font-size: 1.05rem; font-weight: 600; color: var(--text); }
/* Drafting marks: anything the owner must fill in before the page goes live. */
.owner { padding: 1px 6px; border-radius: 6px; background: rgba(255, 148, 64, .18); color: var(--ember); font-weight: 600; }
