/*
  ============================================================
  STYLESHEET: legal.css
  Stick With Sam — Privacy Policy & Terms of Service
  /public/legal/legal.css
  ============================================================
  Loaded after global_style.css via $pageCSS in header.php.

  CONTENTS:
  1.  Page layout      — centred container
  2.  Page header      — title and subtitle
  3.  Tab switcher     — toggle between Privacy and Terms
  4.  Content panel    — glass card for the text
  5.  Section headings — h2 and h3 inside the content
  6.  Text styles      — paragraphs, lists, highlights
  7.  Last updated     — small meta line at the top
  ============================================================
*/


/* ============================================================
   1. PAGE LAYOUT
   ============================================================ */
.legal-page {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
    padding: 8rem 1.5rem 5rem;
}


/* ============================================================
   2. PAGE HEADER
   ============================================================ */
.legal-hero {
    text-align: center;
    margin-bottom: 2.5rem;
}

.legal-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.15;
}

.legal-hero h1 em {
    font-style: italic;
    color: var(--purple-light);
}

.legal-hero p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
}


/* ============================================================
   3. TAB SWITCHER
   Toggles between Privacy Policy and Terms of Service.
   ============================================================ */
.legal-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.legal-tab {
    padding: 0.55rem 1.5rem;
    border-radius: 99px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.07);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
}

.legal-tab:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--text);
}

.legal-tab.active {
    background: var(--gold-dim);
    border-color: var(--gold);
    color: var(--gold);
}


/* ============================================================
   4. CONTENT PANEL
   ============================================================ */
.legal-panel {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

/* Hidden panel */
.legal-content { display: none; }
.legal-content.active { display: block; }

/* Last updated line */
.legal-updated {
    font-size: 0.72rem;
    color: var(--muted);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-updated::before {
    content: '📅';
    font-size: 0.85rem;
}


/* ============================================================
   5. SECTION HEADINGS
   ============================================================ */
.legal-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.legal-content h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-soft);
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
}


/* ============================================================
   6. TEXT STYLES
   ============================================================ */
.legal-content p {
    font-size: 0.85rem;
    color: var(--text-soft);
    line-height: 1.8;
    margin-bottom: 0.85rem;
    font-weight: 300;
}

.legal-content ul {
    margin: 0.5rem 0 0.85rem 1.25rem;
    list-style: disc;
}

.legal-content ul li {
    font-size: 0.85rem;
    color: var(--text-soft);
    line-height: 1.75;
    margin-bottom: 0.3rem;
    font-weight: 300;
}

/* Highlighted note box */
.legal-note {
    background: var(--gold-dim);
    border: 1px solid rgba(245, 200, 66, 0.3);
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    font-size: 0.82rem;
    color: var(--text-soft);
    line-height: 1.65;
    margin: 1.25rem 0;
}

.legal-note strong {
    color: var(--gold);
    font-weight: 700 !important;
}

/* Contact link */
.legal-content a {
    color: var(--purple-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.legal-content a:hover { color: #fff; }


/* ============================================================
   7. RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
    .legal-panel { padding: 1.75rem 1.25rem; }
    .legal-page  { padding-top: 6rem; }
}