/* Cassy — legal & support pages.
   Layout: one calm reading column (≈ 680px) under a small header; a soft pink→butter glow at the top,
   the brand gradient used once as a thin rule. Light and dark themes. */
:root {
  --bg: #FFFFFF;
  --surface: #F6F5F9;
  --ink: #121214;
  --ink-2: #5E5B68;
  --line: #ECEAF0;
  --glow-a: rgba(249, 201, 222, 0.75);
  --glow-b: rgba(248, 241, 160, 0.65);
  --brand: linear-gradient(90deg, #FF8AF6, #FBB4C4 55%, #FDF47E);
  --chip: #FDE3EE;
  --logo-filter: none;
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111013; --surface: #1C1A20; --ink: #F4F2F7; --ink-2: #A9A5B4; --line: #2A2730;
    --glow-a: rgba(255, 138, 246, 0.16); --glow-b: rgba(253, 244, 126, 0.10);
    --chip: #2E1F2A; --logo-filter: invert(1); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111013; --surface: #1C1A20; --ink: #F4F2F7; --ink-2: #A9A5B4; --line: #2A2730;
  --glow-a: rgba(255, 138, 246, 0.16); --glow-b: rgba(253, 244, 126, 0.10);
  --chip: #2E1F2A; --logo-filter: invert(1); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  background-image:
    radial-gradient(60rem 26rem at 0% -6rem, var(--glow-a), transparent 70%),
    radial-gradient(50rem 24rem at 100% -8rem, var(--glow-b), transparent 70%);
  background-repeat: no-repeat;
}
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 680px; margin: 0 auto; padding-block: 28px 64px; }

header.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
header.top img { width: 108px; height: auto; display: block; filter: var(--logo-filter); }
nav.pages { display: flex; gap: 6px; flex-wrap: wrap; }
nav.pages a {
  font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink-2);
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg);
}
nav.pages a[aria-current="page"] { color: var(--bg); background: var(--ink); border-color: var(--ink); }

.hero { padding-block: 44px 8px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin: 0; }
h1 {
  font-family: var(--sans); font-weight: 800; font-size: clamp(34px, 6vw, 46px); line-height: 1.05;
  letter-spacing: -0.03em; margin: 10px 0 0; text-wrap: balance;
}
h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.22em; letter-spacing: -0.01em; }
.rule { width: 64px; height: 4px; border-radius: 2px; background: var(--brand); margin: 20px 0 14px; }
.updated { font-size: 13px; color: var(--ink-2); margin: 0; }
.lede { font-size: 17px; color: var(--ink-2); margin: 18px 0 0; max-width: 60ch; }

main section { padding-top: 34px; }
h2 {
  font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 10px; text-wrap: balance;
  display: flex; align-items: baseline; gap: 10px;
}
h2 .n { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 20px; color: #E86BAE; min-width: 1.6em; }
p, li { max-width: 65ch; }
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 1.2em; }
li { margin: 4px 0; }
li::marker { color: #E86BAE; }
strong { font-weight: 700; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 18px 20px; margin: 4px 0 14px;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 6px 0 14px; }
.grid .card { margin: 0; }
.grid h3 { font-size: 15px; margin: 0 0 6px; }
.grid p { font-size: 14.5px; color: var(--ink-2); }
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--chip); margin-bottom: 8px; }

.contact {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-radius: 22px; padding: 20px 22px; margin: 8px 0 6px;
  background: var(--brand); color: #121214;
}
.contact .label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; margin: 0; }
.contact .mail { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; user-select: all; overflow-wrap: anywhere; }
.contact button {
  font: 700 14px var(--sans); color: #FFFFFF; background: #121214; border: 0; border-radius: 999px;
  padding: 11px 18px; cursor: pointer; min-height: 44px;
}
details { border-bottom: 1px solid var(--line); padding-block: 14px; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 500; color: var(--ink-2); }
details[open] summary::after { content: "–"; }
details > div { padding-top: 10px; color: var(--ink-2); }
details ol { margin: 6px 0 0; padding-left: 1.3em; }

footer.legal {
  margin-top: 54px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px;
}
footer.legal .links { display: flex; gap: 14px; flex-wrap: wrap; }

@media (prefers-reduced-motion: no-preference) {
  .hero, main section { animation: rise .5s ease both; }
  main section:nth-of-type(2) { animation-delay: .04s; }
  main section:nth-of-type(3) { animation-delay: .08s; }
}
@keyframes rise { from { transform: translateY(6px); } to { transform: none; } }
