/* =================== LEGAL PAGES STYLESHEET =================== */

.legal-container {
    max-width: 900px;
    margin: 100px auto 3rem;
    padding: 0 5%;
}

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

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

.last-updated,
.effective-date {
    font-size: 1rem;
    color: #666;
    margin: 0.5rem 0;
}

.subtitle {
    font-size: 1.3rem;
    color: #666;
    font-style: italic;
}

.legal-intro {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    border-left: 4px solid #920126;
}

.legal-intro p {
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.legal-intro ul {
    margin-left: 2rem;
    list-style: disc;
}

.legal-intro ul li {
    margin-bottom: 0.5rem;
}

/* Table of Contents */
.toc {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.toc h2 {
    color: #920126;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.toc ol {
    counter-reset: item;
    list-style-type: none;
    margin-left: 1rem;
}

.toc ol li {
    counter-increment: item;
    margin-bottom: 0.5rem;
}

.toc ol li::before {
    content: counter(item) ". ";
    font-weight: 600;
    color: #920126;
}

.toc a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.toc a:hover {
    color: #920126;
    padding-left: 5px;
}

/* Legal Sections */
.legal-content {
    line-height: 1.8;
}

.legal-section {
    margin-bottom: 3rem;
    scroll-margin-top: 100px;
}

.legal-section h2 {
    color: #920126;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
}

.legal-section h3 {
    color: #5a0118;
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    font-weight: 600;
}

.legal-section h4 {
    color: #920126;
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem;
    font-weight: 600;
}

.legal-section p {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.05rem;
}

.legal-section ul,
.legal-section ol {
    margin: 1rem 0 1rem 2rem;
}

.legal-section ul {
    list-style: disc;
}

.legal-section ol {
    list-style: decimal;
}

.legal-section li {
    margin-bottom: 0.5rem;
    color: #333;
}

.legal-section li ul {
    margin-top: 0.5rem;
}

.legal-section a {
    color: #920126;
    font-weight: 600;
    text-decoration: underline;
}

.legal-section a:hover {
    color: #5a0118;
}

/* Info Boxes */
.important-note,
.important-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.disclaimer-box {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ff9800;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.success-box {
    background: #d4edda;
    border-left: 4px solid #28a745;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.info-box {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.contact-box {
    background: #f8f9fa;
    border: 2px solid #920126;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

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

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

th {
    background: #920126;
    color: #fff;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

tr:hover {
    background: #f8f9fa;
}

.retention-table th,
.pricing-table th,
.timeline-table th {
    background: #920126;
}

.note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Legal Footer */
.legal-footer {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
    border-top: 3px solid #920126;
    text-align: center;
}

.legal-footer p {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

/* Delete Account Page Specific */
.deletion-grid,
.alternatives-grid,
.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.deletion-card,
.alternative-card,
.help-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #920126;
    transition: all 0.3s;
}

.deletion-card:hover,
.alternative-card:hover,
.help-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(146, 1, 38, 0.2);
}

.deletion-card h3,
.alternative-card h3,
.help-card h3 {
    margin-bottom: 1rem;
    color: #920126;
}

.deletion-card ul,
.alternative-card ul {
    list-style: none;
    margin-left: 0;
}

.deletion-card li,
.alternative-card li {
    padding-left: 1.5rem;
    position: relative;
}

.deletion-card li::before,
.alternative-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #920126;
    font-weight: bold;
}

.reasons-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.reason-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #920126;
}

.reason-item h4 {
    color: #920126;
    margin-bottom: 0.5rem;
}

.steps-box {
    background: #e8f4f8;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    border-left: 4px solid #17a2b8;
}

.steps-box ol,
.steps-box ul {
    margin-left: 1.5rem;
}

.steps-box li {
    margin-bottom: 0.5rem;
}

.farewell-box {
    background: linear-gradient(135deg, #920126 0%, #5a0118 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.farewell-box p {
    color: white;
}

.farewell-box ul {
    list-style: none;
    margin: 1rem 0;
}

.farewell-box li {
    color: white;
    padding-left: 0;
}

/* FAQ Items */
.faq-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-item h4 {
    color: #920126;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.faq-item p {
    margin-bottom: 0.5rem;
}

/* Buttons in Legal Pages */
.legal-section button {
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-container {
        margin: 80px auto 2rem;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.2rem;
    }
    
    .toc {
        padding: 1rem;
    }
    
    .deletion-grid,
    .alternatives-grid,
    .help-grid {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .legal-container {
        padding: 0 3%;
    }
    
    .legal-header h1 {
        font-size: 1.8rem;
    }
    
    .legal-intro,
    .important-box,
    .disclaimer-box,
    .warning-box,
    .success-box,
    .info-box,
    .contact-box {
        padding: 1rem;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
}