/* ==========================================================================
   legal.css — styling for Privacy Policy and Terms pages
   Matches the My Sweet Escape look: Montserrat body, Cormorant headings,
   Caveat script accent, hot-pink highlights. Self-contained so it works
   alongside style.css without depending on its variables.
   ========================================================================== */

:root {
    --legal-pink: #ff2d8b;
    --legal-ink: #1a1a1a;
    --legal-muted: #5a5a5a;
    --legal-bg: #fffafc;
    --legal-rule: #f0d9e6;
}

/* ----- Hero ----- */
.legal-hero {
    position: relative;
    padding: 160px 24px 60px;
    text-align: center;
    overflow: hidden;
}

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

.legal-hero .eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 0.22em;
    font-size: 0.72rem;
    color: var(--legal-pink);
    margin-bottom: 14px;
}

.legal-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(2.6rem, 7vw, 4.4rem);
    line-height: 1.05;
    color: #ffffff;
    margin: 0 0 18px;
}

.legal-hero h1 .script {
    font-family: 'Caveat', cursive;
    color: var(--legal-pink);
    font-weight: 700;
    display: inline-block;
}

.legal-hero .lede {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 2.2vw, 1.18rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    max-width: 560px;
    margin: 0 auto;
}

/* ----- Content ----- */
.legal-section {
    padding: 20px 24px 100px;
}

.legal-inner {
    max-width: 760px;
    margin: 0 auto;
    background: var(--legal-bg);
    border: 1px solid var(--legal-rule);
    border-radius: 18px;
    padding: clamp(28px, 5vw, 56px);
    box-shadow: 0 18px 50px rgba(255, 45, 139, 0.06);
}

.legal-inner p,
.legal-inner li {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.75;
    color: #2c2c2c;
}

.legal-inner p {
    margin: 0 0 18px;
}

.legal-updated {
    font-size: 0.92rem !important;
    color: var(--legal-muted) !important;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--legal-rule);
    margin-bottom: 28px !important;
}

.legal-inner h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 3.4vw, 2rem);
    color: var(--legal-ink);
    margin: 38px 0 12px;
    padding-top: 6px;
}

.legal-inner h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: 0.01em;
    color: var(--legal-pink);
    margin: 22px 0 8px;
}

.legal-inner ul {
    margin: 0 0 20px;
    padding-left: 22px;
}

.legal-inner li {
    margin-bottom: 10px;
}

.legal-inner li::marker {
    color: var(--legal-pink);
}

.legal-inner a {
    color: var(--legal-pink);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.2s ease;
}

.legal-inner a:hover {
    opacity: 0.7;
}

.legal-inner strong {
    font-weight: 600;
    color: var(--legal-ink);
}

.legal-contact {
    background: #fff;
    border-left: 3px solid var(--legal-pink);
    border-radius: 8px;
    padding: 16px 20px;
    line-height: 1.8 !important;
}

.legal-disclaimer {
    margin-top: 36px !important;
    padding-top: 20px;
    border-top: 1px solid var(--legal-rule);
    font-size: 0.86rem !important;
    font-style: italic;
    color: var(--legal-muted) !important;
}

/* ----- Footer legal row (works with existing .footer) ----- */
.footer-legal {
    text-align: center;
    padding: 18px 24px 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    opacity: 0.85;
}

.footer-legal a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-legal a:hover {
    opacity: 0.6;
    text-decoration: underline;
}

.footer-legal span {
    margin: 0 8px;
}

/* ----- Reveal animation (matches site .reveal pattern) ----- */
.legal-inner.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.legal-inner.reveal.in-view,
.reveal-fallback .legal-inner.reveal {
    opacity: 1;
    transform: none;
}

/* ----- Responsive ----- */
@media (max-width: 640px) {
    .legal-hero {
        padding: 130px 20px 40px;
    }
    .legal-section {
        padding: 12px 16px 70px;
    }
}

/* ----- Respect reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
    .legal-inner.reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
