/* BirthWave — legal pages stylesheet
   Upload this file to the ROOT of your site so it lives at:
   https://mybirthwave.com/legal.css

   To rebrand: change --accent and --panel below. Nothing else needs editing. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --ink: #16262b;
  --ink-soft: #46595f;
  --muted: #7d9096;
  --bg: #fafcfc;
  --panel: #edf4f3;
  --rule: #dae5e4;
  --accent: #1f6f6b;
  --accent-deep: #14514e;
  --accent-wash: #e4efee;
  --flag-bg: #fbf4ec;
  --flag-rule: #dfc4a6;
  --measure: 34rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: #fff;
}

.masthead-inner {
  max-width: 62rem;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img { height: 30px; width: auto; display: block; }

.brand span {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: .01em;
}

.masthead nav {
  display: flex;
  gap: 1.35rem;
  font-size: .93rem;
  flex-wrap: wrap;
}

.masthead nav a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.masthead nav a:hover,
.masthead nav a:focus-visible { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- layout ---------- */

.sheet {
  max-width: 62rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 60rem) {
  .sheet.has-toc { grid-template-columns: 15rem minmax(0, 1fr); gap: 4rem; }
}

.doc { max-width: var(--measure); }

.doc.wide { max-width: 46rem; }

/* ---------- title block ---------- */

.eyebrow {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 .85rem;
}

h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.1rem, 5.5vw, 2.9rem);
  line-height: 1.14;
  letter-spacing: -.015em;
  margin: 0 0 .9rem;
}

.dateline {
  color: var(--muted);
  font-size: .92rem;
  margin: 0 0 2.2rem;
}

.dateline strong { color: var(--ink-soft); font-weight: 600; }

/* ---------- wave rule (section divider) ---------- */

.wave {
  display: block;
  width: 100%;
  height: 12px;
  margin: 2.6rem 0;
  color: var(--accent-soft, #9cc5c1);
  opacity: .55;
}

/* ---------- headings ---------- */

h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 1.42rem;
  line-height: 1.25;
  letter-spacing: -.01em;
  margin: 2.9rem 0 .5rem;
  scroll-margin-top: 5rem;
}

h2 .num {
  font-family: 'Source Sans 3', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .04em;
  display: block;
  margin-bottom: .3rem;
}

h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 1.9rem 0 .35rem;
  color: var(--ink);
}

p { margin: 0 0 1.05rem; color: var(--ink-soft); }

.doc > p:first-of-type { color: var(--ink-soft); }

strong { color: var(--ink); font-weight: 600; }

a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }

a:hover { color: var(--accent); }

ul, ol { margin: 0 0 1.15rem; padding-left: 1.3rem; color: var(--ink-soft); }

li { margin-bottom: .5rem; }

li::marker { color: var(--muted); }

/* ---------- panels ---------- */

.panel {
  background: var(--panel);
  border-radius: 10px;
  padding: 1.5rem 1.6rem;
  margin: 1.6rem 0 1.9rem;
}

.panel p:last-child, .panel ul:last-child, .panel ol:last-child { margin-bottom: 0; }

.panel h3 { margin-top: 0; }

.panel-label {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-deep);
  margin: 0 0 .6rem;
}

.flag {
  background: var(--flag-bg);
  border-left: 3px solid var(--flag-rule);
  border-radius: 0 8px 8px 0;
  padding: 1.15rem 1.4rem;
  margin: 1.5rem 0;
}

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

.terms-block {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.5rem 1.6rem;
  margin: 1.5rem 0;
  font-size: .96rem;
}

.terms-block ul { margin-bottom: 0; }

/* ---------- table of contents ---------- */

.toc { font-size: .9rem; }

@media (min-width: 60rem) {
  .toc { position: sticky; top: 2.5rem; align-self: start; max-height: calc(100vh - 5rem); overflow-y: auto; }
}

.toc-label {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 .9rem;
}

.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }

.toc li { margin-bottom: .42rem; counter-increment: toc; }

.toc a { color: var(--ink-soft); text-decoration: none; display: block; }

.toc a::before {
  content: counter(toc) ".";
  color: var(--muted);
  display: inline-block;
  min-width: 1.5rem;
  font-variant-numeric: tabular-nums;
}

.toc a:hover, .toc a:focus-visible { color: var(--accent); }

/* ---------- definition rows ---------- */

.rows { border-top: 1px solid var(--rule); margin: 1.4rem 0 1.8rem; }

.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: .1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 34rem) {
  .row { grid-template-columns: 11rem minmax(0, 1fr); gap: 1.2rem; align-items: baseline; }
}

.row dt { font-weight: 600; color: var(--ink); font-size: .93rem; }

.row dd { margin: 0; color: var(--ink-soft); }

/* ---------- form ---------- */

.field { margin-bottom: 1.2rem; }

.field label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: .35rem; color: var(--ink); }

.field .hint { font-size: .85rem; color: var(--muted); margin: 0 0 .45rem; line-height: 1.5; }

.field input[type="text"],
.field input[type="email"],
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  font-size: .97rem;
  padding: .65rem .8rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.field textarea { min-height: 7rem; resize: vertical; }

.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .93rem; color: var(--ink-soft); }

.check input { margin-top: .35rem; flex-shrink: 0; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  font-size: .97rem;
  padding: .7rem 1.5rem;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover { background: var(--accent-deep); color: #fff; }

.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--rule);
  background: #fff;
  padding: 2.4rem 1.5rem 3rem;
}

.foot-inner {
  max-width: 62rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
  align-items: baseline;
  justify-content: space-between;
  font-size: .9rem;
  color: var(--muted);
}

.foot nav { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; }

.foot nav a { color: var(--ink-soft); text-decoration: none; }

.foot nav a:hover, .foot nav a:focus-visible { color: var(--accent); text-decoration: underline; }

.foot-legal { max-width: 34rem; line-height: 1.6; }

::selection { background: var(--accent-wash); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

