/* ============================================
   LEGAL PAGES - PRIVACY & COOKIE POLICY STYLES
   ============================================ */

/* Legal Header */
.legal-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    color: var(--white);
    padding: 4rem 0 3rem;
    text-align: center;
}

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

.legal-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.legal-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.legal-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.legal-update {
    font-size: 0.95rem;
    opacity: 0.8;
    font-style: italic;
}

/* Legal Content */
.legal-content {
    padding: 4rem 0;
}

.legal-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 3.5rem;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
}

/* Section Headings */
.section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--primary-orange);
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-orange), var(--dark-orange));
    color: var(--white);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
}

.subsection-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.list-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.list-title i {
    color: var(--primary-orange);
}

/* Lists */
.legal-list {
    list-style: none;
    padding-left: 0;
    margin: 1.2rem 0;
}

.legal-list li {
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    position: relative;
    line-height: 1.7;
    font-size: 1.05rem;
}

.legal-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Info Boxes */
.info-box {
    background: linear-gradient(135deg, rgba(0, 43, 91, 0.05), rgba(241, 143, 1, 0.05));
    border-left: 4px solid var(--primary-orange);
    border-radius: 8px;
    padding: 1.8rem;
    margin: 1.5rem 0;
}

.info-box h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.info-box h4 i {
    color: var(--primary-orange);
}

.info-box p {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.note-text {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    margin-top: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.note-text i {
    color: var(--primary-orange);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* Purpose Cards */
.purpose-card {
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.purpose-card:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 4px 20px rgba(241, 143, 1, 0.15);
    transform: translateY(-2px);
}

.purpose-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.purpose-header i {
    font-size: 2rem;
    color: var(--primary-orange);
}

.purpose-header h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
}

.purpose-card p {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.purpose-card p:last-child {
    margin-bottom: 0;
}

/* Rights Grid */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.right-card {
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.right-card:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 6px 25px rgba(241, 143, 1, 0.2);
    transform: translateY(-5px);
}

.right-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-orange), var(--dark-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
}

.right-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.6rem;
}

.right-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Contact Box */
.contact-box {
    background: linear-gradient(135deg, rgba(0, 43, 91, 0.05), rgba(241, 143, 1, 0.05));
    border: 2px solid var(--primary-orange);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.contact-details {
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

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

.contact-item i {
    font-size: 1.3rem;
    color: var(--primary-orange);
    margin-top: 0.2rem;
}

.authority-box {
    background: #f5f5f5;
    border-left: 4px solid var(--primary-blue);
    border-radius: 8px;
    padding: 1.8rem;
    margin-top: 2rem;
}

.authority-box h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.authority-box h4 i {
    color: var(--primary-orange);
}

/* Cookie Type Cards */
.cookie-type-card {
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cookie-type-card:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.cookie-type-header {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.cookie-type-header.necessary {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: var(--white);
}

.cookie-type-header.analytics {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: var(--white);
}

.cookie-type-header.profiling {
    background: linear-gradient(135deg, #9E9E9E, #757575);
    color: var(--white);
}

.cookie-type-header.third-party {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: var(--white);
}

.cookie-type-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.cookie-type-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.cookie-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.3rem;
}

.cookie-badge.necessary {
    background: rgba(255, 255, 255, 0.3);
}

.cookie-badge.analytics,
.cookie-badge.profiling,
.cookie-badge.third-party {
    background: rgba(255, 255, 255, 0.25);
}

.cookie-type-body {
    padding: 2rem;
}

.cookie-type-body p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Third Party Services */
.third-party-service {
    background: #f9f9f9;
    border-left: 3px solid var(--primary-orange);
    border-radius: 6px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
}

.third-party-service h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.third-party-service h4 i {
    color: var(--primary-orange);
}

.third-party-service p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Cookie Table */
.cookie-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.cookie-table thead {
    background: var(--primary-blue);
    color: var(--white);
}

.cookie-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 1rem;
}

.cookie-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.95rem;
}

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

.cookie-table code {
    background: #f0f0f0;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #d63384;
}

/* Browser Grid */
.browser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.browser-card {
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.8rem;
    text-align: center;
    transition: all 0.3s ease;
}

.browser-card:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 6px 25px rgba(241, 143, 1, 0.2);
    transform: translateY(-5px);
}

.browser-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.browser-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
}

.browser-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.browser-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.browser-link:hover {
    color: var(--dark-orange);
    gap: 0.7rem;
}

/* Opt-out Box */
.opt-out-box {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(33, 150, 243, 0.05));
    border: 2px solid #2196F3;
    border-radius: 10px;
    padding: 1.8rem;
    margin: 1.5rem 0;
    text-align: center;
}

.opt-out-box h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.opt-out-box p {
    margin-bottom: 1.2rem;
}

/* Inline Links */
.inline-link {
    color: var(--primary-orange);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.inline-link:hover {
    color: var(--dark-orange);
}

/* Footer Legal Links */
.footer-legal-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.footer-legal-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--primary-orange);
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-header {
        padding: 3rem 0 2rem;
    }

    .legal-icon {
        font-size: 3rem;
    }

    .legal-title {
        font-size: 2rem;
    }

    .legal-subtitle {
        font-size: 1rem;
    }

    .section-heading {
        font-size: 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .section-number {
        min-width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .subsection-title {
        font-size: 1.2rem;
    }

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

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

    .cookie-table-wrapper {
        font-size: 0.85rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 0.8rem 0.5rem;
    }

    .contact-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .purpose-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 2rem 0;
    }

    .legal-wrapper {
        padding: 0 1rem;
    }

    .legal-title {
        font-size: 1.6rem;
    }

    .section-heading {
        font-size: 1.3rem;
    }

    .info-box,
    .contact-box,
    .authority-box {
        padding: 1.2rem;
    }

    .cookie-type-header {
        padding: 1.2rem;
        flex-direction: column;
        text-align: center;
    }

    .cookie-type-body {
        padding: 1.5rem;
    }
}
