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

/* ===== VARIABLES ===== */
:root {
    --cream: #F5EFE6;
    --cream-dark: #EDE5D8;
    --orange: #E8834A;
    --orange-hover: #D4723C;
    --orange-light: #F4A87A;
    --green-dark: #2D4A3E;
    --green-mid: #3D6355;
    --green-light: #A8C4A0;
    --sage: #C4D4A0;
    --peach: #E8C4AA;
    --coral: #E8A889;
    --white: #FFFFFF;
    --near-black: #1E1E1E;
    --text-muted: #7A7265;
}

/* ===== BASE ===== */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--near-black);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
}

/* ===== NAV LOGO (shared) ===== */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--green-dark);
}

.nav-logo img {
    width: 36px;
    height: 36px;
}

.nav-logo span {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

/* ===== LEGAL PAGE NAV ===== */
.nav-legal {
    position: sticky;
    top: 0;
    background: rgba(245, 239, 230, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--cream-dark);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

.nav-legal .nav-logo img { width: 32px; height: 32px; }
.nav-legal .nav-logo span { font-size: 1.15rem; letter-spacing: 0; }

.nav-back {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s;
}

.nav-back:hover { color: var(--green-dark); }

/* ===== FOOTER ===== */
footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--cream-dark);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--green-dark);
}

.footer-logo img {
    width: 28px;
    height: 28px;
}

.footer-logo span {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--green-dark); }

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-dev {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-dev a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s;
}

.footer-dev a:hover { color: var(--green-dark); }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green-dark);
    color: var(--white);
    padding: 0.85rem 1.25rem 0.85rem 1.5rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.82rem;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    white-space: nowrap;
    animation: cookieSlideUp 0.4s ease;
}

.cookie-banner[hidden] { display: none; }

.cookie-banner p { margin: 0; }

.cookie-banner a {
    color: var(--orange-light);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.cookie-btn-decline {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    transition: color 0.2s;
}

.cookie-btn-decline:hover { color: var(--white); }

.cookie-btn-accept {
    background: var(--orange);
    color: var(--white);
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s;
}

.cookie-btn-accept:hover { background: var(--orange-hover); }

@keyframes cookieSlideUp {
    from { transform: translateX(-50%) translateY(16px); opacity: 0; }
    to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}

/* ===== LEGAL PAGES ===== */
.legal-wrapper {
    max-width: 760px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

.legal-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 0.75rem;
}

.legal-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    color: var(--green-dark);
    margin-bottom: 0.5rem;
    line-height: 1.15;
}

.legal-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

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

.legal-section h2 {
    font-size: 1.25rem;
    color: var(--green-dark);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--cream-dark);
}

.legal-section h3 {
    font-size: 1rem;
    color: var(--green-mid);
    margin: 1.25rem 0 0.4rem;
}

.legal-section p {
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
    color: #3a3530;
    line-height: 1.7;
}

.legal-section ul,
.legal-section ol {
    padding-left: 1.5rem;
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
    color: #3a3530;
    line-height: 1.7;
}

.legal-section li { margin-bottom: 0.4rem; }

.legal-section a { color: var(--orange); }
.legal-section a:hover { color: var(--orange-hover); }

.legal-callout {
    background: var(--cream-dark);
    border-left: 3px solid var(--orange);
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-right { align-items: center; }

    .cookie-banner {
        white-space: normal;
        border-radius: 1rem;
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        transform: none;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .cookie-banner p { width: 100%; }

    @keyframes cookieSlideUp {
        from { transform: translateY(16px); opacity: 0; }
        to   { transform: translateY(0);    opacity: 1; }
    }

    .legal-wrapper { padding: 2.5rem 1.25rem 4rem; }
}
