/* ==========================================================================
   Revival Now Canada — Legal pages stylesheet
   Loaded ONLY by privacy.html and terms-of-service.html
   Theme: deep clay-black + ivory + dawn clay + pale sand + deep panel
   ========================================================================== */

:root {
  --clay-black: #14100E;
  --ivory: #F0EAE4;
  --clay: #C05B3C;
  --pale-sand: #E8D9C8;
  --panel: #201712;
  --hairline: #3A2C24;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  color: #F0EAE4;
  background: #14100E;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--clay);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: #DF7A57;
}

ul,
ol {
  list-style: none;
}

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

/* Sprout glyph used by the legal header and footer brand */

.sprout {
  display: inline-block;
  position: relative;
  width: 11px;
  height: 17px;
  background: var(--clay);
  border-radius: 2px 2px 7px 7px;
  flex-shrink: 0;
}

.sprout::before,
.sprout::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 5px;
  background: var(--clay);
}

.sprout::before {
  top: 3px;
  left: -6px;
  border-radius: 10px 2px 10px 2px;
  transform: rotate(8deg);
}

.sprout::after {
  top: 8px;
  right: -6px;
  border-radius: 2px 10px 2px 10px;
  transform: rotate(-8deg);
}

.sprout--small {
  width: 8px;
  height: 12px;
}

.sprout--small::before {
  width: 6px;
  height: 4px;
  left: -5px;
}

.sprout--small::after {
  width: 6px;
  height: 4px;
  right: -5px;
}

/* ==========================================================================
   Legal header
   ========================================================================== */

.legal-header {
  background: var(--clay-black);
  border-bottom: 1px solid var(--clay);
  padding: 22px 0;
}

.legal-header-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 16px;
  color: var(--ivory);
}

.legal-brand:hover {
  color: var(--ivory);
}

.legal-brand .sprout {
  transform: scale(1.25);
  transform-origin: left center;
}

.legal-tag {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
}

.legal-header .legal-home {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--pale-sand);
  text-transform: uppercase;
}

.legal-header .legal-home:hover {
  color: var(--clay);
}

/* ==========================================================================
   Legal content
   ========================================================================== */

.legal-content {
  padding: 56px 0 72px;
}

.legal-content .container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-hero {
  margin-bottom: 44px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--hairline);
}

.legal-eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pale-sand);
  margin-bottom: 16px;
  font-weight: 600;
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.12;
  color: var(--ivory);
  font-weight: 700;
  margin-bottom: 14px;
}

.legal-updated {
  color: var(--pale-sand);
  font-size: 14px;
  letter-spacing: 0.06em;
}

.legal-intro p {
  color: var(--ivory);
  font-size: 17px;
  margin-bottom: 16px;
}

/* Table of contents ------------------------------------------------------- */

.toc {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--clay);
  border-radius: 6px;
  padding: 28px 32px;
  margin-bottom: 52px;
}

.toc-title {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 16px;
  font-weight: 700;
}

.toc ol {
  columns: 2;
  column-gap: 44px;
}

.toc li {
  margin-bottom: 9px;
  break-inside: avoid;
}

.toc a {
  color: var(--ivory);
  font-size: 14px;
}

.toc a:hover {
  color: var(--clay);
}

/* Sections ---------------------------------------------------------------- */

.legal-page .legal-content section {
  background-color: transparent !important;
  margin-bottom: 42px;
}

.legal-content section h2 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.25;
  color: var(--clay);
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
  scroll-margin-top: 24px;
}

.legal-content section h3 {
  color: var(--ivory);
  font-size: 18px;
  margin: 20px 0 8px;
}

.legal-content section p {
  color: var(--ivory);
  margin-bottom: 14px;
}

.legal-content section ul,
.legal-content section ol {
  color: var(--ivory);
  margin: 0 0 14px 24px;
}

.legal-content section li {
  margin-bottom: 8px;
}

.legal-content section li::marker {
  color: var(--clay);
}

.legal-content section strong {
  color: var(--ivory);
  font-weight: 700;
}

.legal-addr {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 18px 22px;
  color: var(--pale-sand);
  font-size: 15px;
  margin: 16px 0 24px;
  line-height: 1.7;
}

/* ==========================================================================
   Legal footer
   ========================================================================== */

.legal-footer {
  background: var(--clay-black);
  border-top: 1px solid var(--clay);
  padding: 34px 0;
}

.legal-footer .container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.legal-footer p {
  color: var(--ivory);
  font-size: 13px;
  margin-bottom: 8px;
}

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

.legal-footer a {
  color: var(--clay);
}

.legal-footer a:hover {
  color: #DF7A57;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 720px) {
  .toc ol {
    columns: 1;
  }

  .legal-hero h1 {
    font-size: 32px;
  }
}
