/**
 * Mac Angelo — Legal Page Styles
 * Covers: Privacy Policy, Terms of Service, Disclaimer
 *
 * BEM prefixes:
 *   .ma-legal-*   → all legal pages (shared)
 *
 * @package mac-angelo-child
 * @version 1.0.0
 */

/* ============================================================
   SHARED TOKENS
   ============================================================ */
:root {
  --legal-offwhite: #F9F9F6;
  --legal-white:    #FFFFFF;
  --legal-border:   rgba(0,0,0,0.07);
  --legal-muted:    #6B6B6B;
  --legal-dark:     #0A0A0A;
  --legal-mid:      #4A4A4A;
  --legal-gold:     #C9A84C;
  --legal-teal:     #1A9F9F;
  --legal-violet:   #6B3FA0;
  --legal-max-w:    860px;
  --legal-pad:      clamp(20px, 5vw, 80px);
}

/* ============================================================
   HERO
   ============================================================ */

.ma-legal-hero {
  background: linear-gradient(135deg, #0A0A0A 0%, #0B1628 100%);
  padding: clamp(72px, 10vw, 120px) 0 clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.ma-legal-hero__geo-tl {
  position: absolute; top: 0; left: 0;
  width: clamp(160px, 20vw, 320px);
  height: clamp(100px, 13vw, 200px);
  background: linear-gradient(135deg, rgba(201,168,76,0.10) 0%, transparent 70%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
}

.ma-legal-hero__geo-br {
  position: absolute; bottom: 0; right: 0;
  width: clamp(140px, 16vw, 240px);
  height: clamp(90px, 10vw, 160px);
  background: linear-gradient(315deg, rgba(26,159,159,0.07) 0%, transparent 70%);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.ma-legal-hero__inner {
  max-width: var(--legal-max-w);
  margin: 0 auto;
  padding: 0 var(--legal-pad);
  position: relative;
  z-index: 1;
}

.ma-legal-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--legal-gold);
  margin-bottom: 20px;
}

.ma-legal-hero__eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--legal-gold);
  flex-shrink: 0;
}

.ma-legal-hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #F5F5F0;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.ma-legal-hero__meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #606060;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ma-legal-hero__meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */

.ma-legal-toc {
  background: var(--legal-white);
  border: 1px solid var(--legal-border);
  border-left: 3px solid var(--legal-gold);
  border-radius: 0 12px 12px 0;
  padding: 28px 32px;
  margin-bottom: 48px;
}

.ma-legal-toc__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--legal-muted);
  margin: 0 0 16px;
}

.ma-legal-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px 24px;
}

.ma-legal-toc__list a {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--legal-teal);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.ma-legal-toc__list a::before {
  content: '→';
  font-size: 0.75rem;
  flex-shrink: 0;
}

.ma-legal-toc__list a:hover {
  color: var(--legal-gold);
}

/* ============================================================
   BODY / CONTENT AREA
   ============================================================ */

.ma-legal-body {
  background: var(--legal-offwhite);
  padding: clamp(48px, 7vw, 96px) 0;
}

.ma-legal-body__inner {
  max-width: var(--legal-max-w);
  margin: 0 auto;
  padding: 0 var(--legal-pad);
}

/* Section headings */
.ma-legal-body h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--legal-dark);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 56px 0 16px;
  padding-top: 8px;
  border-top: 1px solid var(--legal-border);
  scroll-margin-top: 100px;
}

.ma-legal-body h2:first-of-type {
  margin-top: 0;
  border-top: none;
}

.ma-legal-body h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--legal-dark);
  margin: 28px 0 10px;
}

/* Body text */
.ma-legal-body p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--legal-mid);
  line-height: 1.75;
  margin: 0 0 20px;
}

/* Lists */
.ma-legal-body ul,
.ma-legal-body ol {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--legal-mid);
  line-height: 1.75;
  margin: 0 0 20px;
  padding-left: 24px;
}

.ma-legal-body li {
  margin-bottom: 8px;
}

.ma-legal-body li::marker {
  color: var(--legal-gold);
}

/* Links in body */
.ma-legal-body a {
  color: var(--legal-teal);
  text-decoration: underline;
  text-decoration-color: rgba(26,159,159,0.35);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.ma-legal-body a:hover {
  color: var(--legal-gold);
  text-decoration-color: rgba(201,168,76,0.5);
}

/* Callout/highlight box */
.ma-legal-callout {
  background: var(--legal-white);
  border: 1px solid var(--legal-border);
  border-left: 3px solid var(--legal-teal);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.ma-legal-callout--gold {
  border-left-color: var(--legal-gold);
}

.ma-legal-callout--violet {
  border-left-color: var(--legal-violet);
}

.ma-legal-callout p {
  margin: 0;
  font-size: 0.9375rem;
}

.ma-legal-callout strong {
  color: var(--legal-dark);
  font-weight: 600;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */

.ma-legal-contact {
  background: var(--legal-white);
  border: 1px solid var(--legal-border);
  border-radius: 16px;
  padding: 40px;
  margin-top: 56px;
  text-align: center;
}

.ma-legal-contact__icon {
  width: 56px;
  height: 56px;
  background: rgba(201,168,76,0.10);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.ma-legal-contact__icon i {
  font-size: 1.375rem;
  color: var(--legal-gold);
}

.ma-legal-contact h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--legal-dark);
  margin: 0 0 12px;
}

.ma-legal-contact p {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--legal-muted);
  margin: 0 0 24px;
}

.ma-legal-contact__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ma-legal-contact__links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--legal-teal);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.ma-legal-contact__links a:hover {
  color: var(--legal-gold);
}

/* ============================================================
   FOOTER LEGAL NAV (Related pages strip)
   ============================================================ */

.ma-legal-nav {
  background: #111111;
  padding: clamp(32px, 4vw, 48px) 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.ma-legal-nav__inner {
  max-width: var(--legal-max-w);
  margin: 0 auto;
  padding: 0 var(--legal-pad);
  text-align: center;
}

.ma-legal-nav__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: #606060;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.ma-legal-nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ma-legal-nav__links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #A8A8A0;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9999px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ma-legal-nav__links a:hover,
.ma-legal-nav__links a[aria-current="page"] {
  color: var(--legal-gold);
  border-color: rgba(201,168,76,0.35);
}

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

@media (max-width: 767px) {
  .ma-legal-toc__list {
    grid-template-columns: 1fr;
  }

  .ma-legal-contact {
    padding: 28px 20px;
  }

  .ma-legal-contact__links {
    flex-direction: column;
    align-items: center;
  }
}
