/* Legal Pages Specific Styles */

/* Legal Hero Section */
.legal-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5e8 100%);
    text-align: center;
}

.legal-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
}

.legal-hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.legal-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.meta-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.meta-value {
    font-size: 1rem;
    color: #4CAF50;
    font-weight: 600;
}

/* Table of Contents */
.legal-toc {
    padding: 60px 0;
    background: #f8f9fa;
}

.toc-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.toc-container h2 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.toc-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.75rem;
}

.toc-list li {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.75rem;
}

.toc-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.toc-list a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

.toc-list a:hover {
    color: #45a049;
    text-decoration: underline;
}

/* Legal Content */
.legal-content {
    padding: 80px 0;
    background: white;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px; /* Account for fixed header */
}

.content-section h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #4CAF50;
}

.content-section h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.content-section h4 {
    color: #4CAF50;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.content-section p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.legal-list {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-list li {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.legal-list li strong {
    color: #333;
}

/* Special Boxes and Notices */
.critical-warning {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
}

.critical-warning h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.critical-warning p {
    color: white;
    font-weight: 500;
    line-height: 1.6;
}

.important-notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.important-notice h4 {
    color: #856404;
    margin-bottom: 1rem;
}

.important-notice p {
    color: #856404;
    margin-bottom: 0;
}

.service-disclaimer {
    background: #e8f5e8;
    border: 2px solid #4CAF50;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.service-disclaimer h4 {
    color: #2e7d32;
    margin-bottom: 1rem;
}

.service-disclaimer p {
    color: #2e7d32;
    margin-bottom: 0;
}

.security-notice {
    background: #e3f2fd;
    border: 2px solid #2196f3;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.security-notice h4 {
    color: #1565c0;
    margin-bottom: 1rem;
}

.security-notice p {
    color: #1565c0;
    margin-bottom: 0;
}

.disclaimer-box {
    background: #ffebee;
    border: 2px solid #f44336;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.disclaimer-box h4 {
    color: #c62828;
    margin-bottom: 1rem;
}

.disclaimer-box p {
    color: #c62828;
    margin-bottom: 1rem;
}

.disclaimer-box p:last-child {
    margin-bottom: 0;
}

.emergency-notice {
    background: #ffcdd2;
    border: 2px solid #f44336;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.emergency-notice h4 {
    color: #c62828;
    margin-bottom: 1rem;
}

.emergency-notice p {
    color: #c62828;
    font-weight: 500;
    margin-bottom: 0;
}

.exercise-rights {
    background: #f3e5f5;
    border: 2px solid #9c27b0;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.exercise-rights h4 {
    color: #7b1fa2;
    margin-bottom: 1rem;
}

.exercise-rights p {
    color: #7b1fa2;
    margin-bottom: 0;
}

.cookie-notice {
    background: #fff8e1;
    border: 2px solid #ff9800;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.cookie-notice h4 {
    color: #ef6c00;
    margin-bottom: 1rem;
}

.cookie-notice p {
    color: #ef6c00;
    margin-bottom: 0;
}

.health-warning {
    background: #ffebee;
    border: 2px solid #f44336;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.health-warning h4 {
    color: #c62828;
    margin-bottom: 1rem;
}

.health-warning p {
    color: #c62828;
    margin-bottom: 0;
}

.fda-statement {
    background: #e8eaf6;
    border: 2px solid #3f51b5;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.fda-statement h4 {
    color: #303f9f;
    margin-bottom: 1rem;
}

.fda-statement p {
    color: #303f9f;
    margin-bottom: 0;
}

.final-reminder {
    background: #e8f5e8;
    border: 2px solid #4CAF50;
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
}

.final-reminder h4 {
    color: #2e7d32;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.final-reminder p {
    color: #2e7d32;
    font-weight: 500;
    margin-bottom: 0;
}

/* Grid Layouts */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.info-item h4 {
    color: #4CAF50;
    margin-bottom: 1rem;
}

.info-item p {
    color: #666;
    margin-bottom: 0;
}

.provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.provider-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.provider-item h4 {
    color: #4CAF50;
    margin-bottom: 1rem;
}

.provider-item p {
    color: #666;
    margin-bottom: 0;
}

.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.right-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.right-item h4 {
    color: #4CAF50;
    margin-bottom: 1rem;
}

.right-item p {
    color: #666;
    margin-bottom: 0;
}

.prohibited-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.prohibited-item {
    background: #ffebee;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #ffcdd2;
}

.prohibited-item h4 {
    color: #c62828;
    margin-bottom: 1rem;
}

.prohibited-item p {
    color: #c62828;
    margin-bottom: 0;
}

.product-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.category-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.category-item h4 {
    color: #4CAF50;
    margin-bottom: 1rem;
}

.category-item p {
    color: #666;
    margin-bottom: 0;
}

.partnership-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.partnership-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.partnership-item h4 {
    color: #4CAF50;
    margin-bottom: 1rem;
}

.partnership-item p {
    color: #666;
    margin-bottom: 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.service-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.service-item h4 {
    color: #4CAF50;
    margin-bottom: 1rem;
}

.service-item p {
    color: #666;
    margin-bottom: 0.75rem;
}

.service-item p:last-child {
    margin-bottom: 0;
}

.service-item a {
    color: #4CAF50;
    text-decoration: none;
}

.service-item a:hover {
    text-decoration: underline;
}

.health-factors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.factor-category {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.factor-category h4 {
    color: #4CAF50;
    margin-bottom: 1rem;
}

.factor-category ul {
    list-style: none;
    padding: 0;
}

.factor-category li {
    color: #666;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.factor-category li:last-child {
    border-bottom: none;
}

/* Cookie Types */
.cookie-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.cookie-type {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.cookie-type h4 {
    color: #4CAF50;
    margin-bottom: 1rem;
}

.cookie-type p {
    color: #666;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.cookie-type p:last-child {
    margin-bottom: 0;
}

.cookie-type strong {
    color: #333;
}

/* Tables */
.retention-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.retention-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.retention-table th,
.retention-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.retention-table th {
    background: #4CAF50;
    color: white;
    font-weight: 600;
}

.retention-table td {
    color: #666;
}

.retention-table tr:last-child td {
    border-bottom: none;
}

.shipping-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.shipping-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.shipping-table th,
.shipping-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.shipping-table th {
    background: #4CAF50;
    color: white;
    font-weight: 600;
}

.shipping-table td {
    color: #666;
}

.shipping-table tr:last-child td {
    border-bottom: none;
}

/* Contact Information */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-method {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.contact-method h4 {
    color: #4CAF50;
    margin-bottom: 1rem;
}

.contact-method p {
    color: #666;
    margin-bottom: 0;
}

.contact-method a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
}

.contact-method a:hover {
    text-decoration: underline;
}

.authority-info {
    background: #e3f2fd;
    border: 2px solid #2196f3;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.authority-info h4 {
    color: #1565c0;
    margin-bottom: 1rem;
}

.authority-info p {
    color: #1565c0;
    margin-bottom: 0;
}

.authority-info a {
    color: #1565c0;
    text-decoration: none;
    font-weight: 500;
}

.authority-info a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-hero {
        padding: 100px 0 60px;
    }
    
    .legal-hero-title {
        font-size: 2.5rem;
    }
    
    .legal-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .legal-meta {
        gap: 1rem;
        flex-direction: column;
    }
    
    .toc-container {
        padding: 1.5rem;
    }
    
    .toc-list {
        grid-template-columns: 1fr;
    }
    
    .content-section h2 {
        font-size: 1.8rem;
    }
    
    .content-section h3 {
        font-size: 1.3rem;
    }
    
    .info-grid,
    .provider-grid,
    .rights-grid,
    .prohibited-grid,
    .product-categories,
    .partnership-types,
    .service-grid,
    .health-factors,
    .cookie-types,
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .critical-warning,
    .important-notice,
    .service-disclaimer,
    .security-notice,
    .disclaimer-box,
    .emergency-notice,
    .exercise-rights,
    .cookie-notice,
    .health-warning,
    .fda-statement,
    .final-reminder {
        padding: 1rem;
    }
    
    .retention-table,
    .shipping-table {
        font-size: 0.9rem;
    }
    
    .retention-table th,
    .retention-table td,
    .shipping-table th,
    .shipping-table td {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .legal-hero-title {
        font-size: 2rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .content-section h3 {
        font-size: 1.2rem;
    }
    
    .toc-container {
        padding: 1rem;
    }
    
    .retention-table,
    .shipping-table {
        font-size: 0.8rem;
    }
    
    .retention-table th,
    .retention-table td,
    .shipping-table th,
    .shipping-table td {
        padding: 0.5rem;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Link styling within legal content */
.legal-content a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
}

.legal-content a:hover {
    color: #45a049;
    text-decoration: underline;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .legal-toc {
        display: none;
    }
    
    .legal-hero {
        padding: 2rem 0;
    }
    
    .legal-content {
        padding: 1rem 0;
    }
    
    .content-section {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    .critical-warning,
    .important-notice,
    .service-disclaimer,
    .security-notice,
    .disclaimer-box,
    .emergency-notice,
    .exercise-rights,
    .cookie-notice,
    .health-warning,
    .fda-statement,
    .final-reminder {
        border: 2px solid #333;
        background: #f8f9fa !important;
        color: #333 !important;
    }
}

