:root {
    --primary-green: #2f6b3f;
    --secondary-green: #40916c;
    --accent-green: #52b788;
    --light-green: #eaf4ec;
    --very-light-green: #f4fdf6;
    --green-dark: #1b4332;
    --dark-green: #1b4332;
    --text-primary: #1e1e1e;
    --text-secondary: #4a5568;
    --white: #ffffff;
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --gray-400: #cbd5e0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--gray-100);
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ============================================
   PAGE HEADER
   ============================================ */

.page-header {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
    color: var(--white);
    padding: 140px 0 80px;
    margin-top: 81px;
    text-align: center;
}

.breadcrumb {
    font-size: 0.95em;
    margin-bottom: 20px;
    opacity: 0.9;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

.breadcrumb span {
    margin: 0 10px;
}

.page-header h1 {
    font-size: 4em;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.last-updated {
    font-size: 1em;
    opacity: 0.85;
    font-weight: 400;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.policy-content {
    background: var(--white);
    padding: 80px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
}

/* ============================================
   TABLE OF CONTENTS SIDEBAR
   ============================================ */

.toc-sidebar {
    position: sticky;
    top: 120px;
}

.toc-container {
    background: var(--gray-100);
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid var(--accent-green);
}

.toc-container h3 {
    font-size: 1.2em;
    color: var(--dark-green);
    margin-bottom: 20px;
    font-weight: 700;
}

.toc-container ul {
    list-style: none;
}

.toc-container li {
    margin-bottom: 12px;
}

.toc-container a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95em;
    transition: all 0.3s ease;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
}

.toc-container a:hover {
    background: var(--white);
    color: var(--primary-green);
    padding-left: 20px;
}

/* ============================================
   POLICY ARTICLE
   ============================================ */

.policy-article {
    max-width: 800px;
}

.intro-text {
    font-size: 1.2em;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 40px;
    padding: 25px;
    background: var(--very-light-green);
    border-radius: 12px;
    border-left: 4px solid var(--accent-green);
}

.policy-section {
    margin-bottom: 60px;
    scroll-margin-top: 100px;
}

.policy-section h2 {
    font-size: 2.2em;
    color: var(--dark-green);
    margin-bottom: 25px;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--gray-200);
}

.policy-section h3 {
    font-size: 1.6em;
    color: var(--primary-green);
    margin: 30px 0 20px;
    font-weight: 600;
}

.policy-section h4 {
    font-size: 1.3em;
    color: var(--dark-green);
    margin: 25px 0 15px;
    font-weight: 600;
}

.policy-section p {
    font-size: 1.05em;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.policy-section ul {
    margin: 20px 0 20px 25px;
}

.policy-section li {
    font-size: 1.05em;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.policy-section a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.policy-section a:hover {
    border-bottom-color: var(--primary-green);
}

/* ============================================
   INFO BOXES & ALERTS
   ============================================ */

.info-box {
    background: var(--light-green);
    padding: 25px 30px;
    border-radius: 12px;
    margin: 30px 0;
    border-left: 4px solid var(--secondary-green);
}

.info-box ul {
    margin: 15px 0 0 20px;
}

.alert-box {
    padding: 25px 30px;
    border-radius: 12px;
    margin: 30px 0;
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
}

.alert-box.warning {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.alert-box strong {
    color: #92400e;
}

/* ============================================
   PURPOSE GRID
   ============================================ */

.purpose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.purpose-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    text-align: center;
    transition: all 0.3s ease;
}

.purpose-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-green);
}

.purpose-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.purpose-card h4 {
    font-size: 1.1em;
    color: var(--dark-green);
    margin-bottom: 10px;
}

.purpose-card p {
    font-size: 0.95em;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   SHARING & RIGHTS LISTS
   ============================================ */

.sharing-list,
.rights-list {
    margin: 30px 0;
}

.sharing-item,
.right-item {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-green);
    box-shadow: var(--shadow-sm);
}

.sharing-item h4,
.right-item h4 {
    color: var(--primary-green);
    margin-bottom: 12px;
    font-size: 1.2em;
}

.sharing-item p,
.right-item p {
    margin: 0;
}

/* ============================================
   SECURITY FEATURES
   ============================================ */

.security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.security-item {
    background: var(--very-light-green);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.security-icon {
    font-size: 2em;
}

/* ============================================
   CONTACT BOX
   ============================================ */

.contact-box {
    background: linear-gradient(135deg, var(--light-green), var(--very-light-green));
    padding: 35px;
    border-radius: 15px;
    margin: 30px 0;
    border: 2px solid var(--accent-green);
}

.contact-box h4 {
    color: var(--dark-green);
    font-size: 1.5em;
    margin-bottom: 20px;
}

.contact-box p {
    margin-bottom: 12px;
    font-size: 1.05em;
}

.contact-box strong {
    color: var(--dark-green);
    font-weight: 600;
}

/* ============================================
   TERMS & CONDITIONS SPECIFIC
   ============================================ */

.account-requirements {
    margin: 30px 0;
}

.requirement-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
}

.req-icon {
    width: 35px;
    height: 35px;
    background: var(--accent-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.requirement-item h4 {
    margin: 0 0 8px 0;
    font-size: 1.1em;
}

.requirement-item p {
    margin: 0;
    font-size: 0.95em;
}

.ip-box {
    background: var(--gray-100);
    padding: 35px;
    border-radius: 15px;
    margin: 30px 0;
}

.ip-box h4 {
    margin-bottom: 15px;
    color: var(--dark-green);
}

.permission-list {
    list-style: none;
    margin: 15px 0;
}

.permission-list li {
    padding: 12px 12px 12px 40px;
    margin-bottom: 10px;
    border-radius: 8px;
    position: relative;
}

.permission-list.allow li {
    background: #d1fae5;
    color: #065f46;
}

.permission-list.allow li::before {
    content: '✓';
    position: absolute;
    left: 12px;
    font-weight: 700;
    color: #10b981;
}

.permission-list.deny li {
    background: #fee2e2;
    color: #991b1b;
}

.permission-list.deny li::before {
    content: '✗';
    position: absolute;
    left: 12px;
    font-weight: 700;
    color: #ef4444;
}

.prohibited-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.prohibited-item {
    background: #fee2e2;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #fca5a5;
}

.prohibit-icon {
    font-size: 2.5em;
    margin-bottom: 12px;
}

.prohibited-item h4 {
    color: #991b1b;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.prohibited-item p {
    color: #7f1d1d;
    font-size: 0.95em;
    margin: 0;
}

.disclaimer-box {
    background: #fef3c7;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
    margin: 30px 0;
}

.disclaimer-box h3 {
    color: #92400e;
    margin-bottom: 15px;
}

.disclaimer-box p,
.disclaimer-box ul {
    color: #78350f;
}

.liability-list {
    margin: 30px 0;
}

.liability-item {
    background: var(--gray-100);
    padding: 20px 25px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid var(--accent-green);
}

.liability-item strong {
    color: var(--dark-green);
    display: block;
    margin-bottom: 8px;
}

/* ============================================
   COOKIE POLICY SPECIFIC
   ============================================ */

.cookie-visual {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.visual-item {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.visual-icon {
    font-size: 3.5em;
    margin-bottom: 15px;
}

.visual-item h4 {
    color: var(--dark-green);
    margin-bottom: 10px;
    font-size: 1.2em;
}

.visual-item p {
    font-size: 0.95em;
    color: var(--text-secondary);
    margin: 0;
}

.cookie-type-section {
    margin: 40px 0;
}

.cookie-type-card {
    background: var(--white);
    padding: 35px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--accent-green);
}

.cookie-type-card.essential {
    border-top-color: #10b981;
}

.cookie-type-card.analytics {
    border-top-color: #3b82f6;
}

.cookie-type-card.functional {
    border-top-color: #8b5cf6;
}

.cookie-type-card.marketing {
    border-top-color: #ec4899;
}

.type-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.type-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
}

.cookie-type-card.essential .type-badge {
    background: #d1fae5;
    color: #065f46;
}

.cookie-type-card.analytics .type-badge,
.cookie-type-card.functional .type-badge,
.cookie-type-card.marketing .type-badge {
    background: var(--gray-200);
    color: var(--text-secondary);
}

.type-header h3 {
    margin: 0;
    font-size: 1.5em;
}

.cookie-examples {
    margin: 25px 0;
    padding: 20px;
    background: var(--gray-100);
    border-radius: 10px;
}

.cookie-examples h4 {
    font-size: 1.1em;
    margin-bottom: 12px;
}

.cookie-examples ul {
    margin-left: 20px;
}

.cookie-info {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.cookie-info span {
    font-size: 0.95em;
    color: var(--text-secondary);
}

.third-party-list {
    margin: 30px 0;
}

.third-party-item {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--secondary-green);
}

.third-party-item h4 {
    margin-bottom: 12px;
}

.external-link {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
}

.external-link:hover {
    text-decoration: underline;
}

.social-list {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    list-style: none;
    margin: 15px 0;
}

.social-list li {
    background: var(--light-green);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
}

.management-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.option-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--accent-green);
}

.option-icon {
    font-size: 3em;
    margin-bottom: 15px;
    text-align: center;
}

.option-card h4 {
    text-align: center;
    margin-bottom: 15px;
}

.browser-instructions {
    margin: 30px 0;
}

.browser-instructions details {
    background: var(--gray-100);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 12px;
    cursor: pointer;
}

.browser-instructions summary {
    font-weight: 600;
    color: var(--dark-green);
    cursor: pointer;
}

.browser-instructions p {
    margin-top: 12px;
    font-size: 0.95em;
    color: var(--text-secondary);
}

.cookie-table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cookie-table thead {
    background: var(--dark-green);
    color: var(--white);
}

.cookie-table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95em;
}

.cookie-table td {
    padding: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.cookie-table tbody tr:hover {
    background: var(--gray-100);
}

.cookie-table code {
    background: var(--gray-200);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

.badge.essential {
    background: #d1fae5;
    color: #065f46;
}

.badge.analytics {
    background: #dbeafe;
    color: #1e40af;
}

.badge.functional {
    background: #ede9fe;
    color: #5b21b6;
}

.badge.marketing {
    background: #fce7f3;
    color: #9f1239;
}

/* FOOTER */
footer {
    background: #1a4d2e;
    color: #fff;
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    height: 50px;
}

.footer-name p {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.7;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-links h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--green-accent);
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--green-accent);
    padding-left: 8px;
}

.footer-bottom {
    padding: 30px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .toc-sidebar {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5em;
    }

    .policy-section h2 {
        font-size: 1.8em;
    }

    .purpose-grid,
    .security-features,
    .management-options {
        grid-template-columns: 1fr;
    }

    .cookie-visual {
        grid-template-columns: 1fr;
    }

    nav {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cookie-table {
        font-size: 0.85em;
    }
}