/*
  Notification Box's legal pages, in its own look (see /notification-box/index.html), which is the Calm
  Utility house style it shares with Refile: Plus Jakarta Sans, the night-blue glowing hero for the title
  band with its kicker pill and fact pills, cards on a cool grey ground, light and dark like the app page.
  Motif: a faint stack of kept notifications drifts at the band's right edge on wide screens.
*/
:root {
  --ground: #F6F7FB;
  --card: #FFFFFF;
  --quiet: #EEF0F6;
  --ink: #15171C;
  --ink-2: #5A6070;
  --line: #E2E5EC;
  --accent: #1A6BD1;
  --accent-soft: rgba(26, 107, 209, .10);
  --link: #165CB8;
  --night: #0B1020;
  --night-ink: #F2F4FA;
  --night-ink-2: #A9B2C6;
  --night-accent: #5B9BFF;
  --shadow: 0 1px 2px rgba(21, 23, 28, .05), 0 8px 24px rgba(21, 23, 28, .06);
  --images: #0B7A75; --video: #6741D9; --audio: #C2255C; --apps: #2B8A3E; --archives: #A65A00;
  --col: 39rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #111318;
    --card: #1B1E25;
    --quiet: #1F232B;
    --ink: #E9EBF0;
    --ink-2: #A3A9B6;
    --line: #2C313B;
    --accent: #8AB4FF;
    --accent-soft: rgba(138, 180, 255, .12);
    --link: #8AB4FF;
    --night: #080B16;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --images: #4FC7BF; --video: #A991FF; --audio: #FF7FA8; --apps: #6FD08A; --archives: #E2B46B;
  }
  ::selection { color: #06122B; }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.7 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }
.wrap { width: min(var(--col), 100% - 40px); margin-inline: auto; }

/* ---------- Title band: the night-blue ground and glow of the app page's hero ---------- */
.band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 90% at 82% 20%, rgba(46, 104, 214, .38), transparent 70%),
    radial-gradient(40% 70% at 8% 100%, rgba(26, 107, 209, .18), transparent 70%),
    var(--night);
  color: var(--night-ink);
}
.top {
  position: relative; z-index: 2;
  background: rgba(11, 16, 32, .55);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.top .wrap { width: min(1120px, 100% - 32px); display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--night-ink); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.02em; margin-right: auto; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.by { color: var(--night-ink-2); font-size: 13px; text-decoration: none; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; white-space: nowrap; }
.by:hover { color: var(--night-ink); border-color: rgba(255, 255, 255, .3); }
.by b { color: var(--night-ink); font-weight: 700; }
.get { color: #06122B; background: var(--night-accent); font-size: 13px; font-weight: 700; text-decoration: none; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.get:hover { background: #7DB0FF; }

.hero { position: relative; z-index: 1; padding: 60px 0 68px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4;
  color: var(--night-ink-2); padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08);
}
.eyebrow::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--night-accent); box-shadow: 0 0 12px var(--night-accent); }
h1 { margin: 22px 0 0; font-size: clamp(38px, 5.4vw, 60px); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
/* The meta lines as the app page's fact pills */
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.meta span {
  font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--night-ink);
  padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1);
}
.meta b { color: var(--night-ink-2); font-weight: 500; margin-right: 2px; }
.meta code { font: inherit; color: var(--night-ink-2); background: none; padding: 0; }

/* ---------- Contents: a card like the app page's feature cards ---------- */
.toc { position: relative; margin: 44px auto 8px; padding: 26px 28px 20px; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); }
.toc h2 { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); line-height: 1.4; }
.toc ol { margin: 0; padding-left: 1.7em; columns: 2; column-gap: 32px; }
.toc li { margin: 0 0 7px; break-inside: avoid; font-size: 15.5px; line-height: 1.45; }
.toc li::marker { color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--link); text-decoration: underline; }

/* ---------- The document ---------- */
main { padding: 12px 0 88px; }
section { padding: 40px 0 12px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
section:first-of-type { border-top: 0; }
h2.sec { margin: 0 0 16px; font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; text-wrap: balance; }
h3 { margin: 28px 0 8px; font-size: 18.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0 0 16px; }
p, li, td { text-wrap: pretty; }
ul, ol { margin: 0 0 16px; padding-left: 1.3em; }
li { margin: 0 0 9px; }
li::marker { color: var(--accent); }
strong, b { font-weight: 700; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .84em;
  background: var(--quiet); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere;
}

/* Tables: a card that scrolls inside itself on narrow screens */
.table-scroll {
  overflow-x: auto; margin: 6px 0 24px; background: var(--card);
  border-radius: 16px; box-shadow: 0 0 0 1px var(--line), var(--shadow); -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
th { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); background: var(--quiet); }

/* Callouts, as on the app page */
.callout {
  margin: 6px 0 22px; padding: 18px 22px; border-radius: 20px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Footer, as on the app page ---------- */
footer { background: var(--night); color: var(--night-ink-2); font-size: 14px; line-height: 1.6; }
footer .wrap { width: min(1120px, 100% - 40px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 32px 0; }
footer a { color: var(--night-ink); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .hero { padding: 40px 0 48px; }
  .meta span { border-radius: 14px; }
  .toc { padding: 22px 22px 16px; }
  .toc ol { columns: 1; }
}
@media (max-width: 480px) {
  .top .wrap { gap: 8px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand img { width: 28px; height: 28px; border-radius: 8px; }
  .get, .by { font-size: 12px; padding: 5px 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Motif: a stack of kept notifications, faint, at the right of the band (wide screens only) */
.stack { display: none; }
@media (min-width: 1180px) {
  .stack {
    display: grid; gap: 10px; position: absolute; z-index: 0; right: max(40px, (100vw - 1120px) / 2 - 40px); top: 118px;
    width: 270px; pointer-events: none;
  }
  .stack i {
    position: relative; display: block; height: 62px; border-radius: 18px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .09);
  }
  .stack i::before {
    content: ""; position: absolute; left: 14px; top: 15px; width: 30px; height: 30px; border-radius: 9px;
    background: rgba(91, 155, 255, .55); box-shadow: 0 0 14px rgba(91, 155, 255, .35);
  }
  .stack i::after {
    content: ""; position: absolute; left: 56px; right: 18px; top: 19px; height: 24px;
    background:
      linear-gradient(rgba(242, 244, 250, .34), rgba(242, 244, 250, .34)) 0 0 / 55% 8px no-repeat,
      linear-gradient(rgba(169, 178, 198, .22), rgba(169, 178, 198, .22)) 0 16px / 88% 6px no-repeat;
  }
  .stack i:nth-child(2) { margin-left: 22px; opacity: .7; }
  .stack i:nth-child(2)::before { background: rgba(194, 37, 92, .6); box-shadow: none; }
  .stack i:nth-child(3) { margin-left: 44px; opacity: .45; }
  .stack i:nth-child(3)::before { background: rgba(43, 138, 62, .6); box-shadow: none; }
}
