/* Reba's Spiritual Way: shared stylesheet for the legal pages */

:root {
  --bg: #140F1D;
  --surface: #1F1830;
  --text: #F4EEF9;
  --muted: #C9BCDF;
  --rose: #EDA9C8;
  --rose-hover: #F5C3DA;
  --gold: #DDB06A;
  --line: rgba(205, 189, 232, .16);
  --field-border: #857A9B; /* at least 3:1 against the page background */

  --font-serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-caps: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --column: 760px;
  --wide: 1120px;
  --gutter: 24px;

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }

[hidden] { display: none !important; }

/* Layout */

.wrap {
  width: 100%;
  max-width: calc(var(--column) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.wrap--wide { max-width: calc(var(--wide) + 2 * var(--gutter)); }

/* Focus and skip link */

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -200px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--rose);
  color: var(--bg);
  font-weight: 500;
  text-decoration: none;
}

.skip-link:focus { top: 16px; }

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

/* Header */

.site-header { border-bottom: 1px solid var(--line); }

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

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

.brand img {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--gold);
  object-fit: cover;
}

.brand__name {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.1;
}

.brand:hover .brand__name { color: var(--rose); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: var(--rose);
  font-size: 15px;
  letter-spacing: .04em;
  text-decoration: none;
}

.back-link::before {
  content: "\2190";
  content: "\2190" / "";
}

.back-link:hover { text-decoration: underline; text-underline-offset: .25em; }

/* Page heading */

.page-hero { padding: 64px 0 24px; }

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-family: var(--font-caps);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .28em;
  line-height: 1.5;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--text);
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -.005em;
}

h2 {
  margin: 0 0 16px;
  font-size: 34px;
  line-height: 1.15;
}

h3 {
  margin: 32px 0 8px;
  font-size: 25px;
  line-height: 1.25;
}

.updated {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.lead {
  margin: 24px 0 0;
  font-size: 19px;
  line-height: 1.65;
}

.rule {
  width: 64px;
  height: 1px;
  margin: 32px 0 0;
  border: 0;
  background: var(--gold);
}

/* Body copy */

.legal { padding-bottom: 24px; }

.legal section {
  padding-top: 48px;
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.legal section:first-of-type { border-top: 0; margin-top: 16px; padding-top: 24px; }

p { margin: 0 0 16px; }

ul, ol { margin: 0 0 16px; padding-left: 1.3em; }

li { margin: 0 0 8px; }

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

strong { font-weight: 500; color: var(--text); }

.muted { color: var(--muted); }

a {
  color: var(--rose);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

a:hover { text-decoration-thickness: 2px; }

code {
  padding: .1em .35em;
  border-radius: 4px;
  background: rgba(205, 189, 232, .1);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .86em;
  overflow-wrap: anywhere;
}

address { font-style: normal; }

/* Table of contents */

.toc {
  margin: 8px 0 0;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.toc h2 {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: var(--font-caps);
  font-size: 13px;
  letter-spacing: .28em;
  line-height: 1.5;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding-left: 1.6em;
  columns: 2 240px;
  column-gap: 32px;
  font-size: 16px;
  line-height: 1.5;
}

.toc li { margin: 0 0 8px; break-inside: avoid; }

.toc a { color: var(--text); text-decoration-color: var(--line); }

.toc a:hover { color: var(--rose); text-decoration-color: currentColor; }

/* Callouts */

.note {
  margin: 24px 0;
  padding: 20px 24px;
  border-left: 2px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: var(--surface);
}

.note > :last-child { margin-bottom: 0; }

.note__title {
  margin: 0 0 8px;
  color: var(--gold);
  font-family: var(--font-caps);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* Definition lists (legal notice) */

.facts {
  margin: 24px 0;
  border-top: 1px solid var(--line);
}

.facts > div {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 4px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt { color: var(--muted); font-size: 15px; padding-top: 2px; }

.facts dd { margin: 0; }

@media (max-width: 560px) {
  .facts > div { grid-template-columns: minmax(0, 1fr); }
}

/* Tables */

.table-wrap {
  max-width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  line-height: 1.55;
}

caption {
  padding: 16px 16px 12px;
  color: var(--gold);
  font-family: var(--font-caps);
  font-size: 13px;
  letter-spacing: .2em;
  text-align: left;
  text-transform: uppercase;
}

th, td {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

tbody th { font-weight: 500; }

/* Stack table rows into cards on narrow screens */
@media (max-width: 640px) {
  .table-stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .table-stack,
  .table-stack tbody,
  .table-stack tr,
  .table-stack th,
  .table-stack td { display: block; width: 100%; }

  .table-stack caption { display: block; }

  .table-stack tr {
    padding: 14px 16px;
    border-top: 1px solid var(--line);
  }

  .table-stack th,
  .table-stack td { padding: 4px 0; border: 0; }

  .table-stack tbody th { font-size: 16.5px; padding-bottom: 6px; }

  .table-stack td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border: 1px solid var(--rose);
  border-radius: 999px;
  background: var(--rose);
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}

.btn:hover { background: var(--rose-hover); border-color: var(--rose-hover); }

.btn--ghost { background: transparent; color: var(--rose); }

.btn--ghost:hover { background: rgba(237, 169, 200, .1); }

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--rose);
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  cursor: pointer;
}

.link-button:hover { text-decoration-thickness: 2px; }

/* Forms and controls */

.panel {
  margin: 24px 0;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.panel > :last-child { margin-bottom: 0; }

.form { display: grid; gap: 22px; }

.field { display: grid; gap: 6px; }

.field label,
.form legend {
  font-weight: 500;
}

.form legend { padding: 0; margin-bottom: 10px; }

.req { color: var(--muted); font-weight: 400; font-size: 15px; }

.hint { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--field-border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}

textarea { min-height: 140px; resize: vertical; }

input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--rose);
  outline-offset: 1px;
}

.choices { display: grid; gap: 10px; }

.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 400 !important;
  cursor: pointer;
}

input[type="radio"],
input[type="checkbox"] {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 4px 0 0;
  accent-color: var(--rose);
}

/* Switch (checkbox with role="switch") */

.switch {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-weight: 500;
}

.switch input {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  flex: none;
  width: 52px;
  height: 30px;
  margin: 0;
  border: 1px solid var(--field-border);
  border-radius: 999px;
  background: var(--bg);
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}

.switch input::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform .2s, background-color .2s;
}

.switch input:checked { background: var(--rose); border-color: var(--rose); }

.switch input:checked::before { transform: translateX(22px); background: var(--bg); }

.switch input:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

.switch input:disabled { opacity: .5; cursor: not-allowed; }

.status-line {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.signal {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.signal--on { border-color: var(--gold); color: var(--gold); }

.confirmation {
  margin: 24px 0;
  padding: 22px 24px;
  border: 1px solid var(--gold);
  border-radius: 16px;
  background: var(--surface);
}

.confirmation h3 { margin-top: 0; }

.confirmation > :last-child { margin-bottom: 0; }

/* Model cancellation form */

details {
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

summary {
  padding: 16px 20px;
  font-weight: 500;
  cursor: pointer;
}

details[open] summary { border-bottom: 1px solid var(--line); }

.details__body { padding: 16px 20px 4px; }

/* Footer */

.site-footer {
  margin-top: 80px;
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.footer-nav li { margin: 0; }

.footer-nav a { color: var(--text); text-decoration: none; }

.footer-nav a:hover { color: var(--rose); text-decoration: underline; text-underline-offset: .25em; }

.footer-nav a[aria-current="page"] { color: var(--rose); }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer-meta p { margin: 0; }

.footer-meta .link-button { font-size: 15px; }

/* Small screens */

@media (max-width: 480px) {
  body { font-size: 16.5px; }
  h2 { font-size: 30px; }
  .page-hero { padding-top: 44px; }
  .brand__name { font-size: 22px; }
  .toc, .panel { padding: 20px; }
  .legal section { padding-top: 40px; margin-top: 40px; }
}

/* Print */

@media print {
  :root { --bg: #fff; --surface: #fff; --text: #111; --muted: #444; --rose: #111; --gold: #444; --line: #ccc; }
  .site-header .back-link, .skip-link, .footer-meta .link-button, .toc { display: none; }
  a { color: #111; }
}
