/* =========================================================
   HurryDeer Browser — Legal Pages (Terms / Privacy)
   Shared styles for agreement.html & privacy.html.
   ========================================================= */

/* ---------- Page Hero ---------- */
.legal-hero {
  position: relative;
  padding: calc(var(--nav-height) + 4rem) 0 3rem;
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--accent-violet) 100%);
  color: #fff;
  overflow: hidden;
}
.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(255,255,255,.12) 0%, transparent 60%);
  pointer-events: none;
}
.legal-hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}
.legal-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-top: .75rem;
}
.legal-hero .lead {
  margin-top: .75rem;
  font-size: 1.0625rem;
  opacity: .88;
  max-width: 560px;
  margin-inline: auto;
}
.legal-hero .badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: .8125rem;
  font-weight: 600;
  padding: .375rem .875rem;
  border-radius: var(--radius-full);
}
.legal-hero .legal-dates {
  margin-top: 1rem;
  font-size: .875rem;
  opacity: .8;
}

/* ---------- Document Body ---------- */
.legal-body {
  padding: 3.5rem 0 5rem;
}
.legal-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.5rem, 4vw, 3rem);
}

/* ---------- Terms Content Typography ---------- */
.terms-content h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.terms-content h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2rem 0 .75rem;
  padding-left: .75rem;
  border-left: 3px solid var(--brand-600);
  line-height: 1.4;
}
.terms-content h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 1.5rem 0 .5rem;
}
.terms-content p {
  font-size: .9375rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: .875rem;
}
.terms-content strong {
  color: var(--text-primary);
  font-weight: 700;
}
.terms-content a {
  color: var(--brand-600);
  text-decoration: underline;
  word-break: break-all;
}
.terms-content a:hover {
  color: var(--brand-700);
}
[data-theme="dark"] .terms-content a {
  color: var(--brand-500);
}
.terms-content > h4:first-of-type {
  margin-top: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .legal-hero {
    padding: calc(var(--nav-height) + 2.5rem) 0 2rem;
  }
  .legal-body {
    padding: 2rem 0 3.5rem;
  }
  .legal-card {
    border-radius: var(--radius);
  }
}
