@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&family=Inter:wght@400;600;800&display=swap');

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

:root {
    --latte-bg: #E8DFD0;
    --latte-cream: #F8FAF6;
    --latte-brown: #8B6F47;
    --latte-dark: #5D4A2F;
    --latte-gold: #D4AF37;
    --text: #3E3224;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.8;
    color: var(--text);
    background: var(--latte-bg);
}

.handwriting {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--latte-gold);
}

/* Navigation */
/* Optimized Nav for the Legal Pages */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 6%;
    background: #3E3224; /* Matching the Dark Nav from your Verify page */
    border-bottom: 3px solid #B8860B; /* The Gold accent */
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.logo-container img {
    height: 35px;
    width: auto;
    /* Apply the Gold Filter here too! */
    filter: sepia(1) saturate(5) hue-rotate(10deg) brightness(1.2);
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: #F8FAF6; /* Light text against dark nav */
}


.back-link {
    color: var(--latte-brown);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.back-link:hover {
    background: var(--latte-cream);
}

/* --- Add this to your existing stuffrite legal-styles.css --- */

/* Cookie Banner Styling - Stuffrite Latte Theme */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--latte-cream); /* Light cream background */
    border: 2px solid var(--latte-gold);
    padding: 20px 30px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(62, 50, 36, 0.15); /* Soft brown shadow */
    visibility: hidden;
}

#cookie-banner p { 
    margin: 0 !important; 
    font-size: 0.95rem; 
    color: var(--text); 
    padding-right: 20px;
    line-height: 1.4;
}

.cookie-btn {
    background: var(--latte-gold);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease;
}

.cookie-btn:hover { transform: scale(1.05); }

.cookie-btn-alt {
    background: transparent;
    color: var(--latte-brown);
    border: 1px solid var(--latte-brown);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
    margin-right: 10px;
}

.cookie-btn-alt:hover {
    background: var(--latte-bg);
}

@media (max-width: 768px) {
    #cookie-banner { 
        flex-direction: column; 
        text-align: center; 
        gap: 20px; 
        bottom: 10px; left: 10px; right: 10px;
    }
    #cookie-banner p { padding-right: 0; }
}

/* Main Content */
.legal-container {
    max-width: 900px;
    margin: 100px auto 60px;
    padding: 0 5%;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 0;
    border-bottom: 3px solid var(--latte-gold);
}

.legal-header .emoji {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.legal-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--latte-dark);
    margin-bottom: 0.5rem;
}

.last-updated {
    font-size: 0.95rem;
    color: var(--latte-brown);
    font-style: italic;
}

/* Intro Callout */
.intro-callout {
    background: linear-gradient(135deg, var(--latte-gold), #E8A0BF);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(93, 74, 47, 0.15);
}

.intro-callout h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.intro-callout p {
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Table of Contents */
.table-of-contents {
    background: var(--latte-cream);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    border-left: 4px solid var(--latte-gold);
}

.table-of-contents h3 {
    color: var(--latte-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.table-of-contents ul {
    list-style: none;
}

.table-of-contents li {
    margin: 0.6rem 0;
}

.table-of-contents a {
    color: var(--latte-brown);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.table-of-contents a:hover {
    color: var(--latte-gold);
}

/* Sections */
section {
    margin-bottom: 3rem;
    scroll-margin-top: 100px;
}

section h2 {
    color: var(--latte-dark);
    font-size: 2rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--latte-gold);
}

section h3 {
    color: var(--latte-brown);
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
}

section p {
    margin-bottom: 1.2rem;
    color: var(--text);
    font-size: 1.05rem;
}

section ul {
    margin: 1rem 0 1.5rem 2rem;
}

section li {
    margin: 0.6rem 0;
    color: var(--text);
}

section strong {
    color: var(--latte-dark);
    font-weight: 700;
}

/* Callout Boxes */
.callout {
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.callout.warning {
    background: #FFF3CD;
    border-color: #FF9800;
}

.callout.tip {
    background: #E8F5E9;
    border-color: #4CAF50;
}

.callout strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.callout ul {
    margin: 0.5rem 0 0 1.5rem;
}

/* Contact Card */
.contact-card {
    background: var(--latte-cream);
    padding: 2rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 2px solid var(--latte-gold);
}

.contact-card p {
    margin: 0.8rem 0;
}

.contact-card a {
    color: var(--latte-gold);
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.data-table thead {
    background: var(--latte-brown);
    color: white;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--latte-cream);
}

.data-table tbody tr:hover {
    background: var(--latte-cream);
}

/* Legal Footer */
.legal-footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 3px solid var(--latte-gold);
    text-align: center;
}

.legal-footer p {
    margin: 0.8rem 0;
}

/* Footer */
footer {
    padding: 3rem 5%;
    background: var(--latte-dark);
    color: var(--latte-cream);
    text-align: center;
    margin-top: 4rem;
}

footer p {
    margin: 0.6rem 0;
    opacity: 0.9;
}

footer a {
    color: var(--latte-gold);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .legal-container {
        margin-top: 80px;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .data-table {
        font-size: 0.9rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.7rem;
    }
}

/* Print Styles */
@media print {
    nav, footer {
        display: none;
    }
    
    .legal-container {
        margin: 0;
        max-width: 100%;
    }
    
    section {
        page-break-inside: avoid;
    }
}