/* Legal Pages Specific Styles */

/* Legal Hero Section */
.legal-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 80px;
    text-align: center;
    color: white;
}

.legal-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-hero-content i {
    font-size: 64px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.legal-hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.last-updated {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 10px;
}

/* Legal Content Layout */
.legal-content {
    padding: 60px 0 80px;
    background: #f9fafb;
}

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

/* Sidebar Navigation */
.legal-sidebar {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}

.legal-sidebar h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1f2937;
}

.legal-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-nav-link {
    display: block;
    padding: 12px 16px;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.legal-nav-link:hover,
.legal-nav-link.active {
    background: #eff6ff;
    color: #2563eb;
    padding-left: 20px;
}

/* Main Legal Content */
.legal-main {
    background: white;
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.legal-section {
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 2px solid #e5e7eb;
}

.legal-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.legal-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #2563eb;
}

.legal-section h3 {
    font-size: 24px;
    font-weight: 600;
    color: #374151;
    margin: 30px 0 20px;
}

.legal-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #4b5563;
    margin: 20px 0 15px;
}

.legal-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 20px;
}

.legal-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.legal-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    line-height: 1.7;
    color: #4b5563;
}

.legal-list li::before {
    content: '•';
    position: absolute;
    left: 10px;
    color: #2563eb;
    font-weight: 700;
    font-size: 20px;
}

.legal-list ol {
    list-style: decimal;
    padding-left: 20px;
}

.legal-list ol li::before {
    display: none;
}

/* Info Boxes */
.info-box,
.warning-box {
    display: flex;
    gap: 15px;
    padding: 20px 25px;
    border-radius: 10px;
    margin: 25px 0;
    align-items: flex-start;
}

.info-box {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
}

.warning-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.info-box i,
.warning-box i {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box i {
    color: #2563eb;
}

.warning-box i {
    color: #f59e0b;
}

.info-box p,
.warning-box p {
    margin: 0;
    line-height: 1.6;
}

.info-box strong,
.warning-box strong {
    color: #1f2937;
}

/* Purpose Grid */
.purpose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.purpose-card {
    background: #f9fafb;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.purpose-card:hover {
    border-color: #2563eb;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.1);
}

.purpose-card i {
    font-size: 42px;
    color: #2563eb;
    margin-bottom: 15px;
}

.purpose-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1f2937;
}

.purpose-card p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* Rights Grid */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.rights-card {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.rights-card i {
    font-size: 36px;
    color: #2563eb;
    margin-bottom: 12px;
}

.rights-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1f2937;
}

.rights-card p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Contact Info Box */
.contact-info-box {
    background: #f9fafb;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.contact-method {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-method:last-child {
    margin-bottom: 0;
}

.contact-method i {
    width: 50px;
    height: 50px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-method strong {
    display: block;
    font-size: 16px;
    color: #1f2937;
    margin-bottom: 5px;
}

.contact-method p {
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
}

/* Cookie-specific Styles */
.cookie-type-card {
    background: #f9fafb;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
}

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

.cookie-type-header i {
    font-size: 32px;
    color: #2563eb;
}

.cookie-type-header h4 {
    font-size: 20px;
    margin: 0;
    color: #1f2937;
}

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

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.cookie-table th,
.cookie-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-table td {
    color: #4b5563;
    font-size: 15px;
}

.cookie-table code {
    background: #f3f4f6;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #dc2626;
}

.cookie-table tbody tr:hover {
    background: #f9fafb;
}

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

.browser-card {
    background: #f9fafb;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
}

.browser-card i {
    font-size: 48px;
    color: #2563eb;
    margin-bottom: 15px;
}

.browser-card h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #1f2937;
}

.browser-card p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

/* Refund-specific Styles */
.refund-timeline {
    margin: 30px 0;
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid;
}

.timeline-item.green {
    background: #f0fdf4;
    border-color: #10b981;
}

.timeline-item.yellow {
    background: #fefce8;
    border-color: #eab308;
}

.timeline-item.orange {
    background: #fff7ed;
    border-color: #f97316;
}

.timeline-item.red {
    background: #fef2f2;
    border-color: #ef4444;
}

.timeline-icon {
    flex-shrink: 0;
}

.timeline-item.green .timeline-icon i {
    color: #10b981;
    font-size: 32px;
}

.timeline-item.yellow .timeline-icon i {
    color: #eab308;
    font-size: 32px;
}

.timeline-item.orange .timeline-icon i {
    color: #f97316;
    font-size: 32px;
}

.timeline-item.red .timeline-icon i {
    color: #ef4444;
    font-size: 32px;
}

.timeline-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #1f2937;
}

.timeline-content p {
    margin: 0 0 10px;
    color: #4b5563;
    font-size: 15px;
}

.fee-label {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.policy-card {
    background: #f9fafb;
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
}

.policy-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.policy-header i {
    font-size: 36px;
    color: #2563eb;
}

.policy-header h4 {
    font-size: 22px;
    margin: 0;
    color: #1f2937;
}

.package-refund-table,
.refund-timeline-table {
    overflow-x: auto;
    margin: 25px 0;
}

.package-refund-table table,
.refund-timeline-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.package-refund-table th,
.package-refund-table td,
.refund-timeline-table th,
.refund-timeline-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.package-refund-table th,
.refund-timeline-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #1f2937;
}

.package-refund-table td,
.refund-timeline-table td {
    color: #4b5563;
}

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

.experience-type {
    background: #f9fafb;
    border-radius: 10px;
    padding: 25px;
}

.experience-type i {
    font-size: 42px;
    color: #2563eb;
    margin-bottom: 15px;
}

.experience-type h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1f2937;
}

.fee-structure {
    display: grid;
    gap: 20px;
    margin: 25px 0;
}

.fee-item {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #2563eb;
}

.fee-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #1f2937;
}

.fee-item p {
    margin: 0;
    color: #6b7280;
}

/* Legal Footer Note */
.legal-footer-note {
    background: #f9fafb;
    border-radius: 10px;
    padding: 25px;
    margin-top: 40px;
    border-left: 4px solid #2563eb;
}

.legal-footer-note p {
    margin-bottom: 15px;
    color: #4b5563;
}

.legal-footer-note p:last-child {
    margin-bottom: 0;
}

/* Links */
.legal-main a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.legal-main a:hover {
    border-bottom-color: #2563eb;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .legal-wrapper {
        grid-template-columns: 1fr;
    }

    .legal-sidebar {
        position: relative;
        top: 0;
    }

    .legal-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .legal-nav-link {
        padding: 10px 16px;
    }

    .legal-nav-link:hover,
    .legal-nav-link.active {
        padding-left: 16px;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 100px 0 60px;
    }

    .legal-hero-content h1 {
        font-size: 36px;
    }

    .legal-hero-content i {
        font-size: 48px;
    }

    .legal-main {
        padding: 30px 20px;
    }

    .legal-section h2 {
        font-size: 26px;
    }

    .legal-section h3 {
        font-size: 20px;
    }

    .purpose-grid,
    .rights-grid,
    .browser-instructions,
    .experience-refund {
        grid-template-columns: 1fr;
    }

    .contact-method {
        flex-direction: column;
        text-align: center;
    }

    .contact-method i {
        margin: 0 auto;
    }

    .cookie-table,
    .package-refund-table,
    .refund-timeline-table {
        font-size: 14px;
    }

    .cookie-table th,
    .cookie-table td,
    .package-refund-table th,
    .package-refund-table td,
    .refund-timeline-table th,
    .refund-timeline-table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .legal-hero-content h1 {
        font-size: 28px;
    }

    .legal-section h2 {
        font-size: 22px;
    }

    .legal-section p {
        font-size: 15px;
    }

    .info-box,
    .warning-box {
        flex-direction: column;
        text-align: center;
    }
}
