/* ============================================================
   Crooked Tree Collaborative — Legal Pages Stylesheet
   Privacy Policy, Terms of Service, and related legal pages
   Inherits :root custom properties from style.css
   ============================================================ */

/* ----- Legal Body ----- */
.legal-body {
  background-color: var(--color-darker);
  color: var(--color-light);
}

/* ============================================================
   PAGE HERO BANNER
   ============================================================ */

.page-hero {
  background-color: var(--color-base);
  padding: 80px 32px 100px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(224, 164, 88, 0.10), transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.effective-date {
  font-size: 0.95rem;
  color: var(--color-muted);
  font-weight: 500;
}

/* ============================================================
   CONTAINER
   ============================================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   POLICY CONTENT CARD
   ============================================================ */

.policy-content {
  max-width: 860px;
  margin: -40px auto 80px;
  background-color: #FAF8F3;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 56px 60px;
  position: relative;
  z-index: 2;
}

.policy-content h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--color-darker);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
  letter-spacing: -0.01em;
}

.policy-content h2:first-of-type {
  margin-top: 0;
}

.policy-content p {
  font-size: 0.975rem;
  color: #3A3C3A;
  line-height: 1.75;
  margin-bottom: 16px;
}

.policy-content ul,
.policy-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.policy-content ul {
  list-style-type: disc;
}

.policy-content ol {
  list-style-type: decimal;
}

.policy-content li {
  font-size: 0.975rem;
  color: #3A3C3A;
  line-height: 1.75;
  margin-bottom: 8px;
}

.policy-content strong {
  color: var(--color-darker);
  font-weight: 700;
}

.policy-content a {
  color: var(--color-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.25s ease;
}

.policy-content a:hover {
  color: var(--color-accent-alt);
}

.policy-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-darker);
  margin-top: 28px;
  margin-bottom: 10px;
}

/* ============================================================
   FOOTER EXTENSIONS
   ============================================================ */

.legal-body .site-footer {
  background-color: var(--color-darker);
  border-top: 1px solid var(--color-border);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ~880px */
@media (max-width: 880px) {
  .page-hero {
    padding: 64px 24px 80px;
  }

  .page-hero h1 {
    font-size: 2.2rem;
  }

  .policy-content {
    margin: -32px 16px 64px;
    padding: 40px 32px;
  }

  .policy-content h2 {
    font-size: 1.35rem;
  }

  .container {
    padding: 0 24px;
  }
}

/* ~600px */
@media (max-width: 600px) {
  .page-hero {
    padding: 48px 20px 64px;
  }

  .page-hero h1 {
    font-size: 1.7rem;
  }

  .policy-content {
    margin: -24px 12px 48px;
    padding: 32px 24px;
    border-radius: var(--radius-md);
  }

  .policy-content h2 {
    font-size: 1.25rem;
  }

  .policy-content p,
  .policy-content li {
    font-size: 0.925rem;
  }

  .container {
    padding: 0 20px;
  }
}

/* ============================================================
   PREFERS REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
