/* =====================================================
   LEGAL PAGES STYLES (Privacy Policy, Terms)
   ===================================================== */

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.legal-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 40px;
    margin-top: 20px;
}

.legal-hero h1 {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 16px 0;
}

.legal-hero p {
    font-size: 18px;
    opacity: 0.9;
    margin: 0 0 20px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.last-updated {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
}

/* =====================================================
   TABLE OF CONTENTS
   ===================================================== */

.toc-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.toc-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px 0;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toc-nav a {
    display: block;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.toc-nav a:hover {
    background: #f3f4f6;
    border-left-color: #667eea;
    color: #667eea;
    padding-left: 20px;
}

.toc-nav a.active {
    background: #eef2ff;
    border-left-color: #667eea;
    color: #667eea;
    font-weight: 600;
}

/* =====================================================
   LEGAL CONTENT
   ===================================================== */

.legal-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.legal-section {
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #e5e7eb;
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 24px 0;
    padding-top: 20px;
}

.legal-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin: 24px 0 12px 0;
}

.legal-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #4b5563;
    margin: 16px 0 8px 0;
}

.legal-section p {
    font-size: 15px;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 16px;
}

.legal-section ul,
.legal-section ol {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-section li {
    font-size: 15px;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 8px;
}

.legal-section li strong {
    color: #374151;
}

/* =====================================================
   INFO & WARNING BOXES
   ===================================================== */

.info-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.info-box .info-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.info-box p {
    margin: 0;
    color: #1e40af;
}

.warning-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.warning-box .warning-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.warning-box p {
    margin: 0;
    color: #92400e;
}

/* =====================================================
   SHARING CARDS
   ===================================================== */

.sharing-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    border-left: 4px solid #667eea;
}

.sharing-card h4 {
    margin: 0 0 8px 0;
    color: #111827;
}

.sharing-card p {
    margin: 0;
    font-size: 14px;
}

/* =====================================================
   DON'T LIST
   ===================================================== */

.dont-list {
    list-style: none;
    padding-left: 0;
}

.dont-list li {
    padding: 12px 16px;
    background: #fef2f2;
    border-radius: 8px;
    margin-bottom: 8px;
    color: #991b1b;
}

/* =====================================================
   SECURITY GRID
   ===================================================== */

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.security-item {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.security-item .security-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
}

.security-item h4 {
    margin: 0 0 8px 0;
    color: #111827;
}

.security-item p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

/* =====================================================
   RIGHTS GRID
   ===================================================== */

.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.right-item {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.right-item:hover {
    border-color: #667eea;
    background: #eef2ff;
}

.right-item .right-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 10px;
}

.right-item h4 {
    margin: 0 0 6px 0;
    font-size: 14px;
    color: #111827;
}

.right-item p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

/* =====================================================
   TABLES
   ===================================================== */

.cookies-table,
.retention-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.cookies-table th,
.retention-table th {
    background: #667eea;
    color: white;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
}

.cookies-table th:first-child,
.retention-table th:first-child {
    border-radius: 8px 0 0 0;
}

.cookies-table th:last-child,
.retention-table th:last-child {
    border-radius: 0 8px 0 0;
}

.cookies-table td,
.retention-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
}

.cookies-table tr:nth-child(even),
.retention-table tr:nth-child(even) {
    background: #f9fafb;
}

.cookies-table tr:last-child td:first-child,
.retention-table tr:last-child td:first-child {
    border-radius: 0 0 0 8px;
}

.cookies-table tr:last-child td:last-child,
.retention-table tr:last-child td:last-child {
    border-radius: 0 0 8px 0;
}

/* =====================================================
   CONTACT CARDS
   ===================================================== */

.legal-section .contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.legal-section .contact-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s ease;
}

.legal-section .contact-card:hover {
    background: #eef2ff;
    transform: translateY(-3px);
}

.legal-section .contact-card .contact-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
}

.legal-section .contact-card h4 {
    margin: 0 0 8px 0;
    color: #111827;
}

.legal-section .contact-card a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    word-break: break-all;
}

.legal-section .contact-card a:hover {
    text-decoration: underline;
}

.response-time {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 16px 24px;
    text-align: center;
    margin-top: 24px;
}

.response-time p {
    margin: 0;
    color: #065f46;
}

/* =====================================================
   BACK TO TOP
   ===================================================== */

.back-to-top {
    text-align: center;
    margin-bottom: 40px;
}

/* =====================================================
   RELATED LINKS
   ===================================================== */

.related-links {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.related-links h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 24px 0;
}

.links-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: #f9fafb;
    border-radius: 10px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.link-card:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.link-card .link-icon {
    font-size: 20px;
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 768px) {
    .legal-hero {
        padding: 40px 24px;
    }
    
    .legal-hero h1 {
        font-size: 28px;
    }
    
    .legal-hero p {
        font-size: 16px;
    }
    
    .toc-section,
    .legal-content {
        padding: 24px;
    }
    
    .legal-section h2 {
        font-size: 22px;
    }
    
    .security-grid,
    .rights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cookies-table,
    .retention-table {
        font-size: 12px;
    }
    
    .cookies-table th,
    .retention-table th,
    .cookies-table td,
    .retention-table td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .legal-container {
        padding: 0 16px 40px;
    }
    
    .legal-hero {
        padding: 32px 20px;
        border-radius: 12px;
    }
    
    .legal-hero h1 {
        font-size: 24px;
    }
    
    .toc-section,
    .legal-content,
    .related-links {
        padding: 20px;
        border-radius: 12px;
    }
    
    .legal-section h2 {
        font-size: 20px;
    }
    
    .legal-section h3 {
        font-size: 16px;
    }
    
    .security-grid,
    .rights-grid {
        grid-template-columns: 1fr;
    }
    
    .info-box,
    .warning-box {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .sharing-card {
        padding: 16px;
    }
    
    .links-grid {
        flex-direction: column;
    }
    
    .link-card {
        justify-content: center;
    }
    
    /* Table scroll on mobile */
    .cookies-table,
    .retention-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* =====================================================
   PRINT STYLES
   ===================================================== */

@media print {
    .legal-hero {
        background: #667eea !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .toc-section,
    .back-to-top,
    .related-links {
        display: none;
    }
    
    .legal-content {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
    
    .legal-section {
        page-break-inside: avoid;
    }
}

/* ...existing code... */

/* =====================================================
   PAYMENT METHODS GRID (Terms Page)
   ===================================================== */

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.payment-method {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.payment-method:hover {
    border-color: #667eea;
    background: #eef2ff;
}

.payment-method .method-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

.payment-method h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #111827;
}

.payment-method p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

/* =====================================================
   POLICY TABLE (Terms Page)
   ===================================================== */

.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.policy-table th {
    background: #667eea;
    color: white;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
}

.policy-table th:first-child {
    border-radius: 8px 0 0 0;
}

.policy-table th:last-child {
    border-radius: 0 8px 0 0;
}

.policy-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
}

.policy-table tr:nth-child(even) {
    background: #f9fafb;
}

.policy-table tr:last-child td:first-child {
    border-radius: 0 0 0 8px;
}

.policy-table tr:last-child td:last-child {
    border-radius: 0 0 8px 0;
}

/* =====================================================
   PROHIBITED LIST (Terms Page)
   ===================================================== */

.prohibited-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.prohibited-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #fef2f2;
    border-radius: 10px;
    border-left: 4px solid #ef4444;
}

.prohibited-item .prohibited-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.prohibited-item p {
    margin: 0;
    font-size: 14px;
    color: #991b1b;
}

/* =====================================================
   RESPONSIVE UPDATES
   ===================================================== */

@media (max-width: 768px) {
    .payment-methods-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .prohibited-list {
        grid-template-columns: 1fr;
    }
    
    .policy-table {
        font-size: 12px;
    }
    
    .policy-table th,
    .policy-table td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .payment-methods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .payment-method {
        padding: 14px;
    }
    
    .payment-method .method-icon {
        font-size: 24px;
    }
    
    /* Table scroll on mobile */
    .policy-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ...existing code... */