:root {
  --accent: #d86fac;
  --accent-deep: #8b285f;
  --accent-soft: #f8e6f0;
  --surface: #fffafc;
  --surface-strong: #ffffff;
  --text: #342b30;
  --text-soft: #675b61;
  --heading: #432d39;
  --focus: #76204f;
  --line: #d86fac;
  --content: 66rem;
  --gutter: clamp(1rem, 4.2vw, 2.5rem);
  --section-space: clamp(2.75rem, 7vw, 5rem);
}

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

html {
  font-size: 14px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

html[data-font-size="12"] { font-size: 12px; }
html[data-font-size="14"] { font-size: 14px; }
html[data-font-size="16"] { font-size: 16px; }

body {
  min-width: 20rem;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--surface);
  font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  z-index: -2;
  top: 4rem;
  right: -18rem;
  width: min(50rem, 110vw);
  aspect-ratio: 1;
  background: url("mandala.svg") center / contain no-repeat;
  opacity: .055;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,250,252,.86), rgba(255,250,252,.97) 38%, #fffafc 80%);
  pointer-events: none;
}

button, input, textarea, select { font: inherit; }
button { color: inherit; }

a {
  color: var(--accent-deep);
  text-decoration-thickness: .09em;
  text-underline-offset: .22em;
}

a:hover { text-decoration-thickness: .14em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

::selection { color: var(--heading); background: var(--accent-soft); }

.skip-link {
  position: fixed;
  z-index: 999;
  top: .5rem;
  left: .5rem;
  translate: 0 -180%;
  padding: .75rem 1rem;
  color: #fff;
  background: var(--focus);
  font-weight: 700;
}

.skip-link:focus { translate: 0 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(calc(100% - (2 * var(--gutter))), var(--content));
  margin-inline: auto;
}

.accessibility-bar {
  position: sticky;
  z-index: 30;
  top: 0;
  color: var(--text-soft);
  background: rgba(255,250,252,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.accessibility-bar__inner {
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .65rem;
}

.accessibility-bar__label {
  margin: 0;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.font-controls {
  display: flex;
  align-items: center;
  gap: .1rem;
}

.font-control {
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  padding: .2rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  transition: background-color 160ms ease, transform 160ms ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.font-control:hover { background: var(--accent-soft); }
.font-control:active { transform: scale(.96); }
.font-control[aria-pressed="true"] {
  color: var(--focus);
  background: var(--accent-soft);
  text-decoration: underline;
  text-decoration-thickness: .12em;
  text-underline-offset: .18em;
}

.font-control--12 { font-size: 12px; }
.font-control--14 { font-size: 14px; }
.font-control--16 { font-size: 16px; }

.site-header {
  background: rgba(255,250,252,.88);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: grid;
  gap: 1rem;
  padding-block: 1.25rem 1rem;
}

.brand {
  width: fit-content;
  color: var(--heading);
  text-decoration: none;
}

.brand__name {
  display: block;
  font-size: clamp(1.3rem, 5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.12;
}

.brand__subtitle {
  display: block;
  margin-top: .35rem;
  color: var(--text-soft);
  font-size: .94rem;
  letter-spacing: .035em;
}

.header-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-weight: 700;
}

.legal-hero {
  padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 .9rem;
  color: var(--accent-deep);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2, h3 {
  color: var(--heading);
  font-weight: 700;
  line-height: 1.18;
  text-wrap: balance;
}

h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.25rem, 8vw, 4.6rem);
  letter-spacing: -.045em;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  letter-spacing: -.025em;
}

h3 {
  margin: 1.6rem 0 .55rem;
  font-size: 1.15rem;
}

p, ul, ol, dl { max-width: 72ch; }

.lead {
  max-width: 52rem;
  margin: 1.25rem 0 0;
  color: var(--text-soft);
  font-size: clamp(1.08rem, 2.8vw, 1.3rem);
}

.meta-line {
  margin: 1.2rem 0 0;
  color: var(--text-soft);
  font-size: .93rem;
}

.legal-main { padding-bottom: var(--section-space); }

.legal-section {
  padding-block: var(--section-space);
  border-bottom: 1px solid var(--line);
}

.legal-section:last-child { border-bottom: 0; }

.legal-section p:first-of-type { margin-top: 0; }
.legal-section p:last-child { margin-bottom: 0; }

.notice {
  margin: 1.75rem 0 0;
  padding: 1rem 1.15rem;
  background: var(--accent-soft);
  border-left: .35rem solid var(--accent);
}

.notice strong { color: var(--heading); }

.todo {
  display: inline;
  padding: .08em .3em;
  color: #5e183f;
  background: #ffe8f4;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.facts {
  margin: 1.35rem 0 0;
}

.facts > div {
  display: grid;
  gap: .15rem;
  padding-block: .85rem;
  border-top: 1px solid rgba(216,111,172,.58);
}

.facts > div:last-child { border-bottom: 1px solid rgba(216,111,172,.58); }

.facts dt {
  color: var(--heading);
  font-weight: 700;
}

.facts dd { margin: 0; }

.clean-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.clean-list li + li { margin-top: .45rem; }

.code-key {
  padding: .1em .35em;
  background: var(--accent-soft);
  border-radius: .25rem;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: .9em;
}

.callout-grid {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.4rem;
}

.callout {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.callout h3 { margin-top: 0; }

.site-footer {
  padding-block: 2.4rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: grid;
  gap: 1rem;
  color: var(--text-soft);
  font-size: .92rem;
}

.site-footer p { margin: 0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a { min-height: 44px; display: inline-flex; align-items: center; }

@media (min-width: 42rem) {
  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding-block: 1.2rem;
  }

  .facts > div { grid-template-columns: minmax(11rem, .42fr) minmax(0, 1fr); gap: 1.5rem; }
  .callout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
}

@media (min-width: 56rem) {
  body::before { right: -8rem; width: min(58rem, 66vw); opacity: .052; }
  body::after { background: linear-gradient(90deg, #fffafc 0%, rgba(255,250,252,.96) 58%, rgba(255,250,252,.78) 100%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  .notice { border: 2px solid CanvasText; }
}

@media print {
  .accessibility-bar, .skip-link, .header-link { display: none; }
  body::before, body::after { display: none; }
  .legal-hero, .legal-section, .site-header, .site-footer { border-color: #777; }
  a { color: inherit; text-decoration: underline; }
}


address {
  max-width: 72ch;
  font-style: normal;
}

.script-text {
  max-width: 64ch;
  font-size: clamp(1.05rem, 2.7vw, 1.2rem);
  line-height: 1.78;
}

.script-text p {
  margin: 0 0 1.25rem;
}

.script-text p:last-child { margin-bottom: 0; }

.todo {
  font-weight: 700;
}

.notice--error {
  border-left-color: #8b285f;
  background: #f9e8ef;
}
