/* =========================================================
   Learning Rewired Lab
   Legal Page System V1
   File: /assets/css/legal/legal-page.css
   Used by: Terms, Privacy, Accessibility, Resource License,
   Cookie Notice, Disclaimer, Copyright, AI Policy, etc.
   ========================================================= */

.legal-page-v1 {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 96px) 24px clamp(80px, 9vw, 124px);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.legal-page-v1 *,
.legal-page-v1 *::before,
.legal-page-v1 *::after {
  box-sizing: border-box;
}

.legal-page-v1-inner {
  width: min(920px, 100%);
  margin: 0 auto;
}

.legal-page-v1-hero {
  max-width: 760px;
  margin-bottom: clamp(34px, 5vw, 56px);
}

.legal-page-v1-eyebrow {
  margin: 0 0 14px;
  color: #2563eb;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.legal-page-v1 h1 {
  margin: 0;
  color: #020617;
  font-size: clamp(2.45rem, 6vw, 4.8rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.075em;
}

.legal-page-v1-intro {
  max-width: 720px;
  margin: 22px 0 0;
  color: #475569;
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  line-height: 1.7;
  letter-spacing: -0.015em;
}

.legal-page-v1-updated {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  margin: 22px 0 0;
  padding: 0 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

/* Content stack */

.legal-page-v1-content {
  display: grid;
  gap: 18px;
}

.legal-page-v1-card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 18px 48px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.legal-page-v1-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #2563eb, rgba(37, 99, 235, 0.12));
  opacity: 0.85;
}

.legal-page-v1-card h2 {
  margin: 0 0 12px;
  color: #020617;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.legal-page-v1-card h3 {
  margin: 24px 0 10px;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 825;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.legal-page-v1-card p {
  margin: 0;
  color: #475569;
  font-size: 0.96rem;
  line-height: 1.72;
}

.legal-page-v1-card p + p {
  margin-top: 14px;
}

.legal-page-v1-card ul,
.legal-page-v1-card ol {
  margin: 14px 0 0;
  padding-left: 1.2rem;
  color: #475569;
}

.legal-page-v1-card li {
  margin: 9px 0;
  padding-left: 0.1rem;
  font-size: 0.96rem;
  line-height: 1.65;
}

.legal-page-v1-card strong {
  color: #0f172a;
  font-weight: 800;
}

.legal-page-v1-card a {
  color: #2563eb;
  font-weight: 750;
  text-decoration: none;
  text-underline-offset: 4px;
}

.legal-page-v1-card a:hover {
  text-decoration: underline;
}

/* Note / disclaimer block */

.legal-page-v1-note {
  padding: clamp(20px, 3vw, 28px);
  border: 1px dashed rgba(37, 99, 235, 0.32);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0.88));
  color: #475569;
}

.legal-page-v1-note p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.68;
}

.legal-page-v1-note strong {
  color: #0f172a;
  font-weight: 850;
}

/* Optional compact meta/card helpers */

.legal-page-v1-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}

.legal-page-v1-mini-list li {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0;
  padding: 0 11px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1;
}

.legal-page-v1-callout {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #f8fafc;
  color: #475569;
}

.legal-page-v1-callout p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.62;
}

/* Legal page navigation, if added later */

.legal-page-v1-local-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
}

.legal-page-v1-local-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #475569;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
}

.legal-page-v1-local-nav a:hover {
  border-color: rgba(37, 99, 235, 0.28);
  color: #2563eb;
}

/* Mobile */

@media (max-width: 720px) {
  .legal-page-v1 {
    padding: 44px 18px 76px;
  }

  .legal-page-v1 h1 {
    font-size: clamp(2.2rem, 13vw, 3.55rem);
    letter-spacing: -0.065em;
  }

  .legal-page-v1-intro {
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.62;
  }

  .legal-page-v1-card {
    border-radius: 22px;
  }

  .legal-page-v1-card::before {
    width: 3px;
  }

  .legal-page-v1-card p,
  .legal-page-v1-card li {
    font-size: 0.93rem;
  }

  .legal-page-v1-note {
    border-radius: 20px;
  }
}

@media (max-width: 460px) {
  .legal-page-v1 {
    padding-inline: 16px;
  }

  .legal-page-v1-card {
    padding: 22px 20px;
  }

  .legal-page-v1-card ul,
  .legal-page-v1-card ol {
    padding-left: 1rem;
  }
}
