/* spiffyvault.net
   Colours follow the app's default "Blue Dark One" theme
   (spiffyvault/lib/theme/blue_dark_one_theme.dart) and the desktop shell
   tokens derived from it (lib/desktop/desktop_theme.dart). */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-semibold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/inter-bold.woff2") format("woff2"); }

:root {
  color-scheme: dark;

  /* Theme */
  --bg: #0A0E1A;
  --bg-deep: #080B15;
  --bg-band: #0E1322;
  --surface: #1A1F2E;
  --surface-variant: #2C3549;
  --text: #E1E8F5;
  --text-2: #B8C7E0;
  --muted: #8E9BB5;
  --primary: #4A7BFF;
  --primary-container: #2E4E8E;
  --on-primary-container: #D4E3FF;
  --link: #8FAEFF;
  /* #4A7BFF under white text is 3.7:1; this fill is 4.9:1 */
  --button: #3B67E8;
  --button-hover: #2F5AD6;
  --secondary: #FF8C66;
  --secondary-text: #FF9E80;
  --secondary-container: #8B3A1F;
  --on-secondary-container: #FFDBCF;
  --tertiary: #FFB74D;
  --success: #4CAF50;
  --success-text: #7FD483;

  /* Desktop shell, as derived in the app */
  --shell-toolbar: #151A28;
  --shell-sidebar: #10141F;
  --shell-border: #2C3446;
  --shell-selection: #20315F;

  /* Page */
  --hairline: #1C2233;
  --panel-border: #1F2638;
  --control-border: #3A4560;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, Menlo, "SF Mono", Consolas, "Liberation Mono", monospace;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-gap: clamp(72px, 10vw, 128px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: var(--link); }
a:hover { color: #B3C8FF; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; }
p { margin: 0; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }

.skip-link { position: absolute; left: 16px; top: -48px; background: var(--button); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 11px 18px;
  border-radius: 8px; border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.button--primary { background: var(--button); color: #fff; }
.button--primary:hover { background: var(--button-hover); color: #fff; }
.button--quiet { background: var(--surface); border-color: var(--control-border); color: var(--text); }
.button--quiet:hover { background: #222838; color: var(--text); }
.button--outline { background: transparent; border-color: var(--control-border); color: var(--text); font-weight: 500; }
.button--outline:hover { border-color: #56637F; color: var(--text); }
.button--large { font-size: 17px; padding: 15px 24px; border-radius: 10px; }

/* ---------- Testnet banner ---------- */

/* The theme's tertiary (amber) is the app's "pending / take care" colour,
   distinct from the blue actions and the orange mailbox accent. */
.testnet-banner { background: #2D1F08; border-bottom: 1px solid #8B5A00; color: #FFE5B3; }
.testnet-banner__inner { display: flex; align-items: center; gap: 8px 14px; padding-block: 10px; font-size: 14px; line-height: 1.45; }
.testnet-banner__tag { flex: none; white-space: nowrap; background: var(--tertiary); color: #2D1F08; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.01em; }
.testnet-banner a { color: #FFD08A; font-weight: 600; white-space: nowrap; }
.testnet-banner a:hover { color: #FFE5B3; }
@media (max-width: 640px) {
  .testnet-banner__inner { align-items: flex-start; }
  .testnet-banner__tag { margin-top: 1px; }
}

/* ---------- Header ---------- */

.site-header { border-bottom: 1px solid var(--hairline); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; }
.brand span { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.button) { color: var(--text-2); text-decoration: none; font-size: 15px; padding: 12px; }
.site-nav a:not(.button):hover { color: var(--text); }
.site-nav .button { margin-left: 8px; }
@media (max-width: 640px) {
  .site-nav a:not(.button) { display: none; }
}

/* ---------- Shared type ---------- */

.eyebrow { font-size: 15px; font-weight: 500; color: var(--link); margin-bottom: 12px; }
.h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; font-weight: 700; letter-spacing: -0.025em; }
.lede { font-size: 18px; color: var(--text-2); margin-top: 20px; max-width: 520px; }
.fine { font-size: 13px; color: var(--muted); }

/* ---------- Hero ---------- */

.hero { padding-top: clamp(32px, 4vw, 56px); }
.hero__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 48px; }
.hero__copy { flex: 1 1 560px; min-width: 0; max-width: 720px; }

.badge-link {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 28px; padding: 6px 14px 6px 6px; min-height: 34px;
  border: 1px solid var(--primary-container); border-radius: 999px;
  background: var(--shell-sidebar); color: var(--on-primary-container);
  font-size: 14px; font-weight: 500; text-decoration: none;
}
.badge-link:hover { color: #fff; border-color: #3D63AE; }
.badge-link__tag { flex: none; white-space: nowrap; background: var(--primary-container); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.badge-link__arrow { color: var(--link); }

.hero__eyebrow { font-size: 15px; font-weight: 500; color: var(--link); margin-bottom: 20px; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; }
.hero__lede { margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 36px; }
.hero__alt { font-size: 15px; text-decoration: none; padding-block: 12px; }
.hero__meta { margin-top: 18px; font-size: 14px; color: var(--muted); }

.mobile-note {
  flex: 0 1 300px; min-width: 0;
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; border: 1px solid var(--surface-variant); border-radius: 12px; background: var(--shell-sidebar);
}
.mobile-note svg { flex: none; margin-top: 2px; }
.mobile-note__title { font-weight: 600; font-size: 15px; }
.mobile-note p:last-child { margin-top: 4px; font-size: 14px; color: var(--text-2); line-height: 1.5; }

/* ---------- Product shot (the desktop app, drawn in HTML) ---------- */

.shot { margin-top: clamp(48px, 6vw, 72px); display: flex; justify-content: flex-end; overflow: hidden; border-radius: 14px; }
.app {
  /* Fills the container on wide screens; narrower ones zoom out, then crop
     from the left so the conversation stays in view. */
  width: 100%; min-width: 1080px; flex: none; height: 640px;
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--shell-border); border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
  font-size: 13px; line-height: 1.45;
  user-select: none;
}
/* zoom also scales the percentage width, so divide it back out */
@media (max-width: 1160px) { .app { zoom: 0.85; width: calc(100% / 0.85); } }
@media (max-width: 980px)  { .app { zoom: 0.72; width: calc(100% / 0.72); } }
@media (max-width: 640px)  { .app { zoom: 0.62; width: calc(100% / 0.62); } }

.app__toolbar { height: 52px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: var(--shell-toolbar); border-bottom: 1px solid var(--shell-border); }
.app__lights { display: flex; gap: 8px; width: 64px; }
.app__lights span { width: 12px; height: 12px; border-radius: 50%; }
.app__lights span:nth-child(1) { background: #FF5F57; }
.app__lights span:nth-child(2) { background: #FEBC2E; }
.app__lights span:nth-child(3) { background: #28C840; }
.app__crumb { color: var(--muted); }
.app__crumb b { color: var(--text); font-weight: 500; }
.app__search-wrap { flex: 1; display: flex; justify-content: center; }
.app__search { width: 340px; height: 28px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border-radius: 7px; background: var(--bg-band); border: 1px solid var(--shell-border); color: var(--muted); }
.kbd { font-size: 12px; border: 1px solid var(--shell-border); border-radius: 4px; padding: 0 5px; }
.app__btn { border: 1px solid var(--control-border); border-radius: 6px; padding: 4px 12px; }
.app__split { display: flex; border-radius: 6px; overflow: hidden; color: #fff; font-weight: 500; }
.app__split span:first-child { background: var(--button); padding: 4px 12px; }
.app__split span:last-child { background: #3460DA; padding: 4px 8px; border-left: 1px solid #2A50C0; }

.app__body { flex: 1; display: flex; min-height: 0; }

.app__sidebar { width: 220px; flex: none; display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; background: var(--shell-sidebar); border-right: 1px solid var(--shell-border); }
.app__section { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); padding: 14px 10px 4px; }
.app__section:first-child { padding-top: 4px; }
.app__row { display: flex; justify-content: space-between; align-items: center; padding: 5px 10px; border-radius: 6px; }
.app__row--selected { background: var(--shell-selection); font-weight: 500; }
.app__row .mono { color: var(--muted); font-size: 12px; }
.app__count { background: var(--primary-container); color: var(--on-primary-container); border-radius: 9px; padding: 0 7px; font-size: 11px; }
.app__brc { background: var(--secondary-container); color: var(--on-secondary-container); border-radius: 4px; padding: 0 5px; font-size: 10px; font-weight: 600; margin-left: auto; margin-right: 8px; }
.app__spacer { flex: 1; }
.app__status { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 10px 10px 0; border-top: 1px solid var(--shell-border); font-size: 12px; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

.app__list { width: 270px; flex: none; border-right: 1px solid var(--shell-border); }
.app__find { margin: 12px; height: 28px; display: flex; align-items: center; padding: 0 10px; border-radius: 6px; background: var(--shell-toolbar); border: 1px solid var(--shell-border); color: var(--muted); }
.app__contact { display: flex; gap: 10px; align-items: center; padding: 10px 14px; }
.app__contact--selected { background: #172036; }
.app__contact small { display: block; color: var(--muted); font-size: 12px; }
.avatar { width: 32px; height: 32px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface-variant); color: var(--text-2); font-weight: 600; font-size: 12px; }
.avatar--primary { background: var(--primary-container); color: var(--on-primary-container); }

.app__convo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app__convo-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--shell-border); }
.app__who { display: flex; gap: 10px; align-items: center; }
.app__who b { display: block; font-weight: 600; font-size: 14px; }
.app__who small { color: var(--muted); font-size: 12px; }
.app__tabs { display: flex; gap: 18px; color: var(--muted); }
.app__tabs span:first-child { color: var(--text); border-bottom: 2px solid var(--primary); padding-bottom: 4px; }
.app__timeline { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 18px 24px; overflow: hidden; }
.app__day { text-align: center; font-size: 12px; color: var(--muted); }
.pay { width: 300px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--shell-border); }
.pay--in { align-self: flex-start; }
.pay--out { align-self: flex-end; background: #1C2A4D; border-color: var(--primary-container); }
.pay__amount { font-family: var(--mono); font-size: 17px; }
.pay--in .pay__amount { color: var(--success-text); }
.pay__note { margin-top: 2px; }
.pay__meta { margin-top: 6px; font-size: 12px; color: #A9B8D6; }
.pay--in .pay__meta { color: var(--muted); }
.pay__meta--waiting { color: var(--tertiary) !important; }
.pay__actions { display: flex; gap: 8px; margin-top: 10px; font-size: 12px; }
.pay__actions span { border: 1px solid var(--control-border); border-radius: 6px; padding: 3px 10px; }
.app__composer { display: flex; gap: 10px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--shell-border); }
.app__field { height: 32px; display: flex; align-items: center; padding: 0 10px; border-radius: 7px; background: var(--shell-toolbar); border: 1px solid var(--shell-border); color: var(--muted); }
.app__field--amount { width: 120px; font-family: var(--mono); }
.app__field--note { flex: 1; }
.app__from { font-size: 12px; color: var(--muted); }
.app__pay { background: var(--button); color: #fff; border-radius: 7px; padding: 6px 14px; font-weight: 500; }

/* ---------- Proof strip ---------- */

.proof { padding-top: 56px; }
.proof__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-block: 1px solid var(--hairline); }
.proof__item { padding: 24px 24px 24px 0; }
.proof__item b { font-weight: 600; }
.proof__item p { margin-top: 4px; font-size: 15px; color: var(--text-2); }

/* ---------- Feature rows ---------- */

.feature { padding-top: var(--section-gap); }
.feature__row { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: center; }
.feature__row--reverse { flex-wrap: wrap-reverse; }
.feature__copy { flex: 1 1 400px; min-width: 0; }
.feature__visual { flex: 1 1 420px; min-width: 0; }

.checks { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; }
.checks svg { flex: none; margin-top: 2px; }
.checks strong { font-weight: 600; }

/* Delivery diagram */
.lanes { display: flex; flex-direction: column; gap: 16px; }
.lane { padding: 22px 22px 24px; border: 1px solid var(--panel-border); border-radius: 14px; background: var(--shell-sidebar); }
.lane__label { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.lane__path { display: flex; align-items: center; }
.lane__foot { margin-top: 16px; font-size: 13px; color: var(--muted); }
.node { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; background: var(--surface); border: 1px solid var(--surface-variant); }
.node--them { background: var(--primary-container); border-color: var(--primary-container); color: var(--on-primary-container); }
.node--mailbox { background: #2A1C17; border-color: var(--secondary-container); color: var(--on-secondary-container); }
.link { flex: 1; min-width: 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 6px; }
.link span { font-size: 12px; white-space: nowrap; }
.link i { width: 100%; height: 0; border-top: 2px solid var(--primary); }
.link--direct span { color: var(--link); }
.link--mail span { color: var(--secondary-text); }
.link--mail i { border-top: 2px dashed var(--secondary); }
@media (max-width: 480px) {
  .node { padding: 7px 10px; font-size: 13px; }
  .link span { font-size: 11px; }
  /* three stops don't leave room for labels; the caption below explains */
  .link--mail span { display: none; }
}

/* Command palette */
.palette { background: var(--shell-toolbar); border: 1px solid var(--shell-border); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7); font-size: 14px; user-select: none; }
.palette__input { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--shell-border); font-size: 16px; }
.caret { display: inline-block; width: 1.5px; height: 18px; background: var(--link); vertical-align: -3px; margin-left: 1px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }
.palette__list { padding: 8px; }
.palette__group { padding: 8px 10px 4px; font-size: 12px; color: var(--muted); }
.palette__item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; }
.palette__item--active { background: var(--shell-selection); }
.palette__item .avatar { width: 22px; height: 22px; font-size: 10px; }
.palette__foot { padding: 10px 18px; border-top: 1px solid var(--shell-border); font-size: 12px; color: var(--muted); }

.shortcuts { display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; align-items: center; margin: 28px 0 0; }
.shortcuts dt { justify-self: start; font-family: var(--mono); font-size: 13px; border: 1px solid var(--surface-variant); border-radius: 6px; padding: 3px 9px; }
.shortcuts dd { margin: 0; color: var(--text-2); }

/* ---------- Security ---------- */

.security { margin-top: var(--section-gap); background: var(--bg-band); border-block: 1px solid var(--hairline); }
.security__inner { padding-block: clamp(64px, 8vw, 104px); }
.security__intro { max-width: 640px; }
.security__intro .lede { max-width: none; }
.security__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; margin-top: 48px; }
.security__grid h3 { margin-top: 16px; font-size: 18px; font-weight: 600; }
.security__grid p { margin-top: 8px; font-size: 15px; color: var(--text-2); }
.security__grid p.fine { font-size: 13px; color: var(--muted); }
.security__more { margin-top: 48px; font-size: 15px; }

/* ---------- BRC-100 ---------- */

.interop { padding-top: clamp(64px, 8vw, 96px); scroll-margin-top: 24px; }
.interop__box { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--panel-border); border-radius: 16px; }
.interop__copy { flex: 1 1 480px; min-width: 0; }
.interop h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; }
.interop p { margin-top: 10px; color: var(--text-2); max-width: 620px; }
.interop p.fine { font-size: 14px; color: var(--muted); }
.interop .button { flex: none; }

/* ---------- Download ---------- */

.download { padding-top: clamp(80px, 11vw, 136px); }
.download__head { text-align: center; max-width: 640px; margin: 0 auto; }
.download__head h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.download__head p { margin-top: 16px; font-size: 18px; color: var(--text-2); }
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 48px; }
.platform { display: flex; flex-direction: column; gap: 6px; padding: 24px; border: 1px solid var(--shell-border); border-radius: 14px; background: var(--shell-sidebar); }
.platform__head { display: flex; justify-content: space-between; align-items: center; min-height: 24px; }
.platform h3 { font-size: 18px; font-weight: 600; }
.platform__req { font-size: 14px; color: var(--muted); }
.platform__tag { display: none; font-size: 12px; color: var(--on-primary-container); background: var(--primary-container); border-radius: 999px; padding: 2px 10px; }
.platform .button { margin-top: auto; }
.platform__spacer { min-height: 16px; flex: 1; }
.platform.is-current { border-color: var(--primary); background: #121A30; }
.platform.is-current .platform__tag { display: inline-block; }
.platform.is-current .button { background: var(--button); border-color: var(--button); color: #fff; }
.platform.is-current .button:hover { background: var(--button-hover); }
.download__meta { margin-top: 16px; text-align: center; font-size: 14px; color: var(--muted); }

.notify { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; margin-top: 40px; padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px); border: 1px dashed var(--control-border); border-radius: 14px; scroll-margin-top: 24px; }
.notify__copy { flex: 1 1 320px; min-width: 0; }
.notify h3 { font-size: 18px; font-weight: 600; }
.notify__copy p { margin-top: 6px; font-size: 15px; color: var(--text-2); }
.notify form { flex: 1 1 380px; min-width: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.notify input { flex: 1 1 220px; min-width: 0; height: 46px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--control-border); background: var(--shell-sidebar); color: var(--text); font: inherit; font-size: 15px; }
.notify input::placeholder { color: #75829D; }
.notify input:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; }
.notify .button { height: 46px; }
.notify__status { flex-basis: 100%; font-size: 14px; color: var(--text-2); min-height: 1px; }
.notify__status.is-error { color: #FF8A8A; }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; padding-top: clamp(80px, 11vw, 136px); }
.faq h2 { margin-bottom: 32px; font-size: clamp(28px, 3.2vw, 36px); font-weight: 700; letter-spacing: -0.025em; }
.faq__list { border-top: 1px solid var(--panel-border); }
.faq details { border-bottom: 1px solid var(--panel-border); scroll-margin-top: 24px; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 68px; padding: 20px 0; font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-3px, -3px); transition: transform 150ms ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { padding-bottom: 22px; margin-top: -4px; color: var(--text-2); }

/* ---------- Legal pages ---------- */

.legal { max-width: 760px; padding-block: clamp(56px, 8vw, 96px) 0; }
.legal h1 { font-size: clamp(34px, 4.4vw, 48px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.legal__date { margin-top: 12px; font-size: 14px; color: var(--muted); }
.legal h2 { margin-top: 48px; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; scroll-margin-top: 24px; }
.legal h3 { margin-top: 28px; font-size: 17px; font-weight: 600; }
.legal p, .legal li { color: var(--text-2); }
.legal p { margin-top: 14px; }
.legal ul { margin: 14px 0 0; padding-left: 1.25em; display: flex; flex-direction: column; gap: 8px; }
.legal li::marker { color: var(--muted); }
.legal strong { color: var(--text); font-weight: 600; }
/* Disclaimers the reader must not miss: full-strength text rather than shouting capitals */
.legal__caps { color: var(--text) !important; font-weight: 500; }
.legal__summary { margin-top: 36px; padding: clamp(20px, 3vw, 28px); background: var(--shell-sidebar); border: 1px solid var(--panel-border); border-radius: 14px; }
.legal__summary h2 { margin-top: 0; font-size: 17px; }
.legal__summary li { color: var(--text); }
.legal__summary p { font-size: 14px; color: var(--muted); }

.download__terms { margin-top: 6px; text-align: center; font-size: 13px; color: var(--muted); }
.notify__privacy { flex-basis: 100%; font-size: 13px; color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer { margin-top: clamp(80px, 11vw, 136px); background: var(--bg-deep); border-top: 1px solid var(--hairline); }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: center; padding-block: 40px 24px; }
.site-footer .brand img { width: 24px; height: 24px; }
.site-footer .brand span { font-size: 16px; font-weight: 600; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; }
.site-footer nav a { color: var(--text-2); text-decoration: none; padding: 12px 8px; }
.site-footer nav a:hover { color: var(--text); }
.site-footer__legal { padding-bottom: 40px; font-size: 13px; color: var(--muted); }
