/* ============================================
   LEGAL PAGES — Privacy & Terms
   The Creative Dad LLC
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cream: #FAFAF8;
    --navy: #1a1a2e;
    --navy-light: #24243e;
    --gold: #8B7355;
    --gold-light: #C4A97D;
    --gold-pale: #D4C4A8;
    --muted: #5a5a6e;
    --muted-light: #8a8a9e;
    --beige: #F0EDE6;
    --beige-dark: #E8E4DB;
    --white: #FFFFFF;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--cream);
    color: var(--navy);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION (matches landing page)
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 2rem;
    transition: all 0.4s ease;
    background: rgba(250, 250, 248, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav.scrolled {
    background: rgba(250, 250, 248, 0.95);
    box-shadow: 0 1px 0 rgba(26, 26, 46, 0.06);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-brand {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.nav-brand span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--navy);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.5rem;
    background: var(--navy);
    color: var(--cream) !important;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-cta:hover {
    background: var(--navy-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(26, 26, 46, 0.2);
}

/* ============================================
   LEGAL HERO
   ============================================ */
.legal-hero {
    padding: 9rem 2rem 4rem;
    background: var(--beige);
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
    pointer-events: none;
}

.legal-hero-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.legal-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.legal-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--navy);
    margin-bottom: 1rem;
}

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

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

/* ============================================
   LEGAL CONTENT
   ============================================ */
.legal {
    padding: 4rem 2rem 6rem;
    background: var(--cream);
}

.legal-inner {
    max-width: 760px;
    margin: 0 auto;
}

.legal-summary {
    background: var(--white);
    border-left: 3px solid var(--gold);
    border-radius: 8px;
    padding: 1.75rem 2rem;
    margin-bottom: 3.5rem;
    box-shadow: 0 1px 30px rgba(26, 26, 46, 0.04);
}

.legal-summary-label {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 600;
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 0.5rem !important;
}

.legal-summary p {
    font-size: 1rem;
    color: var(--navy);
    line-height: 1.7;
    margin-bottom: 0;
}

.legal section {
    margin-bottom: 2.75rem;
}

.legal h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2.4vw, 1.75rem);
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--beige-dark);
}

.legal h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
    margin-top: 1.75rem;
    margin-bottom: 0.6rem;
}

.legal p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1.1rem;
}

.legal p:last-child {
    margin-bottom: 0;
}

.legal a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid var(--gold-pale);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.legal a:hover {
    color: var(--navy);
    border-color: var(--navy);
}

.legal ul {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
}

.legal ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.7;
}

.legal ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-light);
}

.legal-address {
    font-style: normal;
    background: var(--beige);
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    font-size: 0.98rem;
    color: var(--navy);
    line-height: 1.85;
    margin-top: 1rem;
}

.legal-address strong {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--navy);
}

/* All-caps legal text (warranty/liability disclaimers) */
.legal .legal-allcaps {
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    line-height: 1.75;
    color: var(--muted);
}

/* ============================================
   FOOTER (matches landing page)
   ============================================ */
.footer {
    background: var(--navy);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-brand {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 1.25rem;
}

.footer-brand span {
    color: var(--gold-light);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(250, 250, 248, 0.45);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold-light);
}

.footer-divider {
    width: 40px;
    height: 1px;
    background: rgba(250, 250, 248, 0.1);
    margin: 0 auto 1.5rem;
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(250, 250, 248, 0.3);
}

.footer-domain {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: rgba(250, 250, 248, 0.2);
    letter-spacing: 0.05em;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .nav-links li:not(:last-child) {
        display: none;
    }

    .legal-hero {
        padding: 7rem 1.5rem 3rem;
    }

    .legal {
        padding: 3rem 1.5rem 4rem;
    }

    .legal-summary {
        padding: 1.5rem;
    }

    .legal h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0 1.25rem;
    }

    .legal-hero h1 {
        font-size: 1.9rem;
    }

    .legal ul li {
        font-size: 0.95rem;
    }
}
