/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Popup Theme Colors - Exactly matching your modal */
    --bg-cream: #fffef7;
    --bg-header: #f3ede3;
    --bg-light: #fefcf8;
    --text-primary: #2c2a27;
    --text-brown: #8b4b1c;
    --text-terracotta: #a75f2a;
    --text-muted: #7d6b58;
    --accent-gold: #e2b27c;
    --border-light: #e0d6ca;
    --border-dark: #d4c5b4;
    --shadow: 0 25px 45px rgba(0,0,0,0.08);
    --transition: all 0.25s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.55;
    color: var(--text-primary);
    background-color: var(--bg-cream);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles - Matching popup header */
/* .header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    flex-wrap: wrap;
}

.logo h1 {
    color: var(--text-brown);
    font-size: clamp(22px, 5vw, 28px);
    font-weight: 600;
    letter-spacing: -0.3px;
}

.logo p {
    color: var(--text-muted);
    font-size: clamp(11px, 3vw, 13px);
    margin-top: 5px;
}

.nav-links {
    display: flex;
    gap: clamp(20px, 4vw, 40px);
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    font-size: clamp(14px, 3.5vw, 16px);
}

.nav-links a:hover {
    color: var(--text-terracotta);
} */

/* Policy Page Layout */
.policy-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: clamp(30px, 6vw, 30px) clamp(16px, 5vw, 40px);
}

/* Policy Header - Matching modal header style */
.policy-header {
    background: var(--bg-header);
    margin-bottom: clamp(30px, 6vw, 50px);
    padding: clamp(25px, 5vw, 35px) clamp(20px, 5vw, 30px);
    border-radius: 28px;
    border: 1px solid var(--border-light);
}

.policy-header h1 {
    font-size: clamp(32px, 8vw, 48px);
    font-weight: 600;
    color: var(--text-brown);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.policy-header .effective-date {
    color: var(--text-muted);
    font-size: clamp(13px, 3.5vw, 15px);
    margin-bottom: 20px;
    border-left: 3px solid var(--accent-gold);
    padding-left: 12px;
}

.policy-header .intro-text {
    color: var(--text-primary);
    font-size: clamp(15px, 4vw, 17px);
    line-height: 1.6;
    margin-top: 20px;
}

/* Table of Contents - Matching modal body style */
.table-of-contents {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: clamp(20px, 5vw, 35px);
    margin-bottom: clamp(35px, 6vw, 55px);
    box-shadow: var(--shadow);
}

.table-of-contents h3 {
    font-size: clamp(18px, 4.5vw, 22px);
    font-weight: 600;
    color: var(--text-brown);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-gold);
    display: inline-block;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.toc-grid a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: clamp(13px, 3.5vw, 15px);
    padding: 8px 0;
    display: block;
    transition: var(--transition);
    border-bottom: 1px dashed var(--border-light);
}

.toc-grid a:hover {
    color: var(--text-terracotta);
    padding-left: 8px;
    border-bottom-color: var(--accent-gold);
}

/* Policy Content Sections - Matching modal body */
.policy-section {
    margin-bottom: clamp(35px, 6vw, 55px);
    scroll-margin-top: 100px;
}

.policy-section h2 {
    font-size: clamp(22px, 6vw, 28px);
    font-weight: 600;
    color: var(--text-brown);
    margin: 1.2rem 0 0.8rem 0;
    padding-bottom: 8px;
}

.policy-section h3 {
    font-size: clamp(18px, 4.5vw, 22px);
    font-weight: 500;
    color: var(--text-terracotta);
    margin: 1rem 0 0.6rem 0;
}

.policy-section p {
    color: var(--text-primary);
    font-size: clamp(15px, 4vw, 20px);
    line-height: 1.55;
    margin-bottom: 0.8rem;
}

.policy-section ul, 
.policy-section ol {
    margin: 0.5rem 0 1rem 1.5rem;
}

.policy-section li {
    color: var(--text-primary);
    font-size: clamp(15px, 4vw, 18px);
    line-height: 1.55;
    margin: 0.4rem 0;
    list-style-type: circle;
}

.policy-section li strong {
    color: var(--text-brown);
    font-weight: 600;
}

.policy-section strong {
    color: var(--text-brown);
    font-weight: 600;
}

/* Highlight/Note Box */
.note-box {
    background: rgba(226, 178, 124, 0.08);
    border-left: 3px solid var(--accent-gold);
    padding: clamp(16px, 4vw, 20px) clamp(20px, 5vw, 24px);
    border-radius: 16px;
    margin: 1.5rem 0;
}

.note-box p {
    margin-bottom: 0;
}

/* Contact Info Box */
.contact-info {
    background: var(--bg-header);
    padding: clamp(20px, 5vw, 24px);
    border-radius: 20px;
    margin: 1.5rem 0;
    border: 1px solid var(--border-light);
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info strong {
    color: var(--text-brown);
}

.contact-info a {
    color: var(--text-terracotta);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Back to Home Button - Matching popup button style */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--text-brown);
    color: white;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 40px;
    margin-top: 40px;
    transition: var(--transition);
    font-size: clamp(14px, 3.5vw, 15px);
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.btn-back:hover {
    background: var(--text-terracotta);
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(139, 75, 28, 0.2);
}

/* Footer Styles - Matching popup theme
.footer {
    background: var(--bg-header);
    border-top: 1px solid var(--border-light);
    margin-top: 60px;
    padding: 2rem 0 1.5rem;
} */

/* Responsive Breakpoints - Matching your popup */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .policy-page {
        padding: 30px 20px;
    }
    
    .toc-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .footer-nav-cols {
        gap: 1.8rem;
    }
    .footer-col {
        flex-basis: calc(50% - 1rem);
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .policy-header h1 {
        font-size: 28px;
    }
    
    .policy-section h2 {
        font-size: 22px;
    }
    
    .table-of-contents {
        padding: 20px;
    }
    
    .btn-back {
        width: 100%;
        justify-content: center;
    }
    
    /* .footer-nav-cols {
        flex-direction: column;
        gap: 1.5rem;
    }
    .footer-col {
        width: 100%;
    } */
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection Color - Matching accent */
::selection {
    background: var(--accent-gold);
    color: var(--text-brown);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-header);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-terracotta);
}

/* Animation - Matching modal animation */
@keyframes fadeInUp {
    from {
        transform: scale(0.96);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.policy-page {
    animation: fadeInUp 0.25s ease-out;
}

/* Print Styles */
@media print {
    .header, .footer, .btn-back, .table-of-contents {
        display: none;
    }
    
    .policy-page {
        padding: 0;
        margin: 0;
        animation: none;
    }
    
    .policy-header {
        background: none;
        padding: 0;
    }
    
    body {
        background: white;
    }
}