/* ========================================
   LEGAL PAGES STYLING
   ======================================== */

.legal-container {
    min-height: 100vh;
    padding: 120px 0 50px;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-blue) 100%);
}

.legal-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(14, 165, 233, 0.1);
}

.legal-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.last-updated {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

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

.legal-section {
    background: var(--white);
    padding: 3rem;
    margin-bottom: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.legal-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-blue);
}

.legal-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-section h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-section p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.legal-section ul,
.legal-section ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-section li {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-section a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.contact-info {
    background: var(--light-blue);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 1.5rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 1.0625rem;
}

/* Legal Navigation */
.legal-nav {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    margin-top: 3rem;
}

.legal-nav h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.legal-nav li {
    margin: 0;
}

.legal-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.legal-nav a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
    text-decoration: none;
}

.legal-nav i {
    font-size: 1.25rem;
}

/* CCPA Information Table */
.info-table {
    overflow-x: auto;
    margin: 2rem 0;
}

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

.info-table thead {
    background: var(--gradient-1);
}

.info-table th {
    padding: 1rem;
    text-align: left;
    color: var(--white);
    font-weight: 600;
}

.info-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(14, 165, 233, 0.1);
    color: var(--text-light);
}

.info-table tbody tr:last-child td {
    border-bottom: none;
}

.info-table tbody tr:hover {
    background: var(--light-blue);
}

/* OPT-OUT SPECIFIC STYLES */
.opt-out-form-section {
    padding: 2.5rem;
}

.preference-card {
    background: var(--light-blue);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 2px solid rgba(14, 165, 233, 0.1);
    transition: all 0.3s ease;
}

.preference-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

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

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

.preference-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.preference-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.preference-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preference-option:hover {
    background: rgba(14, 165, 233, 0.05);
}

.preference-option input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.checkbox-label strong {
    color: var(--text-dark);
    font-size: 1.0625rem;
}

.checkbox-label .description {
    color: var(--text-light);
    font-size: 0.9375rem;
}

.save-preferences-btn {
    width: 100%;
    margin-top: 2rem;
    padding: 1.25rem;
    font-size: 1.125rem;
}

/* CCPA Opt-Out Box */
.ccpa-opt-out-box {
    background: linear-gradient(135deg, var(--lighter-blue) 0%, var(--light-blue) 100%);
    padding: 2.5rem;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
    text-align: center;
}

.ccpa-opt-out-box h3 {
    color: var(--text-dark);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.ccpa-opt-out-box i {
    color: var(--primary-color);
    font-size: 2rem;
}

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

.opt-out-status {
    display: none;
    margin-top: 1.5rem;
}

/* Privacy Request Form */
.rights-request-form {
    background: var(--light-blue);
    padding: 2.5rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.rights-request-form .form-group {
    margin-bottom: 1.5rem;
}

.rights-request-form label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.rights-request-form input,
.rights-request-form select,
.rights-request-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(14, 165, 233, 0.2);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.rights-request-form input:focus,
.rights-request-form select:focus,
.rights-request-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.rights-request-form textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-container span {
    flex: 1;
    color: var(--text-light);
}

/* Browser Links */
.browser-links {
    background: var(--light-blue);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 1.5rem;
}

.browser-links h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.browser-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.browser-links li {
    margin-bottom: 0.75rem;
}

.browser-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.browser-links a i {
    font-size: 0.875rem;
}

/* Marketing Partners Specific Styles */
.purpose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.purpose-card {
    background: var(--light-blue);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.purpose-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.purpose-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.purpose-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.purpose-card p {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin: 0;
}

.partners-list {
    margin: 2rem 0;
}

.partner-category {
    background: var(--light-blue);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.partner-category h3 {
    color: var(--text-dark);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.partner-category i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.partner-category ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.partner-category li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(14, 165, 233, 0.1);
}

.partner-category li:last-child {
    border-bottom: none;
}

.privacy-links ul {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.privacy-links li {
    margin-bottom: 0.75rem;
}

.privacy-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-section {
        padding: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-nav ul {
        grid-template-columns: 1fr;
    }
    
    .info-table {
        font-size: 0.875rem;
    }
    
    .preference-card,
    .rights-request-form,
    .ccpa-opt-out-box,
    .browser-links {
        padding: 1.5rem;
    }
    
    .purpose-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .legal-container {
        padding: 100px 0 30px;
    }
    
    .legal-header h1 {
        font-size: 1.75rem;
    }
    
    .legal-section {
        padding: 1.5rem;
    }
}