/* Legal Pages Stylesheet */
/* Styles for Privacy Policy, Terms of Service, COPPA Compliance, and Cookie Policy */

/* Legal Page Layout */
.legal-page {
    padding: 10rem 0 4rem;
    min-height: 100vh;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.legal-header h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.legal-updated,
.legal-effective {
    font-size: 0.875rem;
    color: var(--text-light);
}

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

/* Table of Contents */
.legal-toc {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.legal-toc h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.legal-toc ol {
    columns: 2;
    column-gap: 2rem;
    padding-left: 1.25rem;
}

.legal-toc li {
    margin-bottom: 0.5rem;
    break-inside: avoid;
}

.legal-toc a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.legal-toc a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

@media (max-width: 640px) {
    .legal-toc ol {
        columns: 1;
    }
}

/* Legal Sections */
.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.legal-section:last-of-type {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.legal-section h3 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin: 1.5rem 0 0.75rem;
}

.legal-section h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 1rem 0 0.5rem;
}

.legal-section p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-section ul,
.legal-section ol {
    color: var(--text-gray);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-section a {
    color: var(--primary);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* Highlight Boxes */
.highlight-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary);
}

.highlight-box h3 {
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.highlight-box p {
    margin-bottom: 0.5rem;
}

.highlight-box ul {
    margin-bottom: 0;
}

.highlight-box.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(239, 68, 68, 0.1));
    border-left-color: var(--accent);
}

.highlight-box.coppa {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(99, 102, 241, 0.1));
    border-left-color: var(--success);
}

/* COPPA Badge */
.coppa-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--success);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.coppa-badge .badge-icon {
    font-size: 1rem;
}

/* Tables */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.875rem;
}

.legal-table th,
.legal-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.legal-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
}

.legal-table td {
    color: var(--text-gray);
}

.legal-table tr:hover td {
    background: rgba(99, 102, 241, 0.05);
}

.legal-table a {
    color: var(--primary);
}

@media (max-width: 768px) {
    .legal-table {
        display: block;
        overflow-x: auto;
    }
}

/* Contact Box */
.contact-box {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    border: 1px solid var(--border);
}

.contact-box h3 {
    margin-top: 0;
    color: var(--primary);
}

.contact-box p {
    margin-bottom: 0.5rem;
}

.contact-box a {
    color: var(--primary);
}

.contact-divider {
    height: 1px;
    background: var(--border);
    margin: 1.5rem 0;
}

/* Back Link */
.legal-back {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Legal Footer */
.legal-footer {
    background: var(--bg-light);
    padding: 2rem 0;
    margin-top: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

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

/* ===================== */
/* COPPA Page Specific */
/* ===================== */

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

.commitment-item {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.commitment-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.commitment-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.commitment-item h4 {
    margin: 0.5rem 0;
    color: var(--text-dark);
}

.commitment-item p {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin: 0;
}

/* Process Steps */
.process-steps {
    margin: 1.5rem 0;
}

.step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin: 0 0 0.5rem;
    color: var(--text-dark);
}

.step-content p {
    margin: 0;
    color: var(--text-gray);
}

.step-content ul {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* No Collect List */
.no-collect-list {
    list-style: none;
    padding: 0;
}

.no-collect-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.no-icon {
    font-size: 1.125rem;
}

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

.right-item {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.right-item h4 {
    margin: 0 0 0.5rem;
    color: var(--text-dark);
    font-size: 1rem;
}

.right-item p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* Method Cards */
.method-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.method-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.method-card h4 {
    margin: 0 0 1rem;
    color: var(--primary);
}

.method-card p {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.method-card ol,
.method-card ul {
    font-size: 0.875rem;
    margin: 0;
    padding-left: 1.25rem;
}

/* Response Time Box */
.response-time {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(99, 102, 241, 0.05));
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
}

.response-time h4 {
    margin: 0 0 0.5rem;
    color: var(--success);
}

.response-time p {
    margin: 0;
    color: var(--text-gray);
}

/* FTC Notice */
.ftc-notice {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
}

.ftc-notice h4 {
    margin: 0 0 0.5rem;
    color: var(--text-dark);
}

.ftc-notice p {
    margin: 0;
    font-size: 0.875rem;
}

/* ===================== */
/* Cookie Page Specific */
/* ===================== */

/* Cookie Type Grid */
.cookie-type-grid {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.cookie-type {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}

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

.cookie-icon {
    font-size: 1.5rem;
}

.cookie-header h4 {
    margin: 0;
    flex: 1;
}

.cookie-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
}

.cookie-badge.required {
    background: var(--primary);
    color: white;
}

.cookie-badge.optional {
    background: var(--bg-light);
    color: var(--text-gray);
    border: 1px solid var(--border);
}

.cookie-type p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

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

.browser-item {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1rem;
}

.browser-item h4 {
    margin: 0 0 0.5rem;
    color: var(--text-dark);
}

.browser-item p {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.browser-item a {
    font-size: 0.75rem;
    color: var(--primary);
}

/* ===================== */
/* Responsive Styles */
/* ===================== */

@media (max-width: 768px) {
    .legal-page {
        padding: 16rem 0 3rem;
    }

    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-section h2 {
        font-size: 1.25rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .legal-back {
        flex-direction: column;
    }

    .legal-back .btn-secondary {
        text-align: center;
    }
}

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

    .legal-toc {
        padding: 1rem;
    }

    .highlight-box {
        padding: 1rem;
    }

    .contact-box {
        padding: 1rem;
    }

    .commitment-grid,
    .rights-grid,
    .method-cards {
        grid-template-columns: 1fr;
    }
}
