/* Legal Pages CSS - Privacy Policy, Terms of Service */

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

.legal-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.legal-updated {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.legal-subtitle {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.7;
}

/* Table of Contents */

.toc-section {
    background: var(--bg-light);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.toc-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.toc-container h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.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 var(--border-color);
    padding-bottom: 0.75rem;
}

.toc-list li:last-child {
    border-bottom: none;
}

.toc-list a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.toc-list a:hover {
    color: var(--primary-dark);
    padding-left: 0.5rem;
}

/* Legal Content */

.legal-content {
    padding: 4rem 0;
    background: var(--bg-white);
}

.legal-content .container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    max-width: 1400px;
}

.legal-body {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

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

.legal-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
}

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

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

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

.intro-text {
    font-size: 1.1rem;
    line-height: 1.9;
}

.legal-section ul,
.legal-section ol {
    margin: 1rem 0 1.5rem 2rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.legal-section ul li,
.legal-section ol li {
    margin-bottom: 0.75rem;
}

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

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

/* Security Badge Inline */

.security-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-light);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.security-badge-inline i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.security-badge-inline span {
    font-weight: 600;
    color: var(--text-dark);
}

/* Info Boxes */

.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 1.25rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
}

.info-box i {
    font-size: 1.5rem;
    color: #2196f3;
    flex-shrink: 0;
}

.info-box p {
    margin: 0;
    color: #0d47a1;
}

.dont-box {
    background: #ffebee;
    border-left: 4px solid #f44336;
    padding: 1.25rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.dont-box ul {
    margin: 0;
    list-style: none;
}

.dont-box li {
    color: #c62828;
    font-weight: 500;
}

/* Highlight Section */

.highlight-section {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
}

/* Plaid Box */

.plaid-box {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.plaid-logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.plaid-logo-section i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.plaid-logo-section h3 {
    margin: 0;
    font-size: 1.5rem;
}

/* Security Grid */

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.security-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

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

.security-item h4 {
    font-size: 1.1rem;
    margin: 0 0 0.75rem;
}

.security-item p {
    font-size: 0.95rem;
    margin: 0;
}

/* Certification Badges */

.certification-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
}

.cert-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    flex: 1;
    min-width: 150px;
}

.cert-badge i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.cert-badge span {
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

/* Provider List */

.provider-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.provider-item {
    background: var(--bg-light);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

/* Rights Grid */

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

.right-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

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

.right-item h4 {
    font-size: 1.1rem;
    margin: 0 0 0.75rem;
}

.right-item p {
    font-size: 0.95rem;
    margin: 0;
}

/* Cookie Types */

.cookie-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.cookie-type {
    background: var(--bg-light);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

/* Contact Methods */

.contact-methods {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-method {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
}

.contact-method i {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-method strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-method p {
    margin: 0;
    line-height: 1.6;
}

.response-time {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #e8f5e9;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.response-time i {
    font-size: 1.5rem;
    color: #4caf50;
}

.response-time p {
    margin: 0;
    color: #2e7d32;
    font-weight: 500;
}

/* Acknowledgment Section */

.acknowledgment-section {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--primary-color);
}

.acknowledgment-section h2 {
    justify-content: center;
}

/* Sidebar */

.legal-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.sidebar-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.sidebar-links {
    list-style: none;
}

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

.sidebar-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.sidebar-links a:hover {
    color: var(--primary-dark);
    padding-left: 0.5rem;
}

.sidebar-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.trust-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.trust-card h3 {
    color: white;
}

.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.trust-badge i {
    font-size: 1.5rem;
}

.trust-badge span {
    font-weight: 500;
}

/* Responsive */

@media (max-width: 1024px) {
    .legal-content .container {
        grid-template-columns: 1fr;
    }

    .legal-sidebar {
        position: static;
    }

    .sidebar-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-body {
        padding: 2rem 1.5rem;
    }

    .legal-section h2 {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .section-number {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }

    .toc-list {
        grid-template-columns: 1fr;
    }

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

    .certification-badges {
        flex-direction: column;
    }

    .provider-list,
    .cookie-types {
        grid-template-columns: 1fr;
    }
}
