/* Legal Pages Styles - Modern Card Layout */

html {
    scroll-behavior: smooth;
}

body {
    background: #f7fafc;
    min-height: 100vh;
}

.legal-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.legal-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
    color: #2d3748;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #1a202c;
    font-weight: 700;
}

.last-updated {
    font-style: italic;
    color: #718096;
    margin-bottom: 40px;
    font-size: 0.95rem;
}

.summary-box,
.highlight-box,
.important-notice {
    background: #ebf8ff;
    border-left: 4px solid #4299e1;
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 6px;
}

.summary-box strong,
.highlight-box strong {
    color: #2c5282;
    font-size: 1.1rem;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #2d3748;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.legal-content h3 {
    font-size: 1.4rem;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #4a5568;
    font-weight: 600;
}

.legal-content p {
    margin-bottom: 18px;
    text-align: justify;
}

.legal-content ul,
.legal-content ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.legal-content li {
    margin-bottom: 12px;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: #ffffff;
}

.legal-content table th,
.legal-content table td {
    border: 1px solid #e2e8f0;
    padding: 14px;
    text-align: left;
}

.legal-content table th {
    background-color: #f7fafc;
    font-weight: 600;
    color: #4a5568;
}

.back-home {
    display: inline-block;
    margin-top: 40px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: 500;
}

.back-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Dark mode support */
.dark body {
    background: #1a202c;
}

.dark .legal-content {
    background: #2d3748;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    color: #e2e8f0;
}

.dark .legal-content h1 {
    color: #f7fafc;
}

.dark .legal-content h2 {
    color: #e2e8f0;
    border-bottom-color: #4a5568;
}

.dark .legal-content h3 {
    color: #cbd5e0;
}

.dark .last-updated {
    color: #a0aec0;
}

.dark .summary-box,
.dark .highlight-box,
.dark .important-notice {
    background: #2c5282;
    border-left-color: #63b3ed;
}

.dark .summary-box strong,
.dark .highlight-box strong {
    color: #90cdf4;
}

.dark .legal-content table {
    background: #2d3748;
}

.dark .legal-content table th,
.dark .legal-content table td {
    border-color: #4a5568;
}

.dark .legal-content table th {
    background-color: #1a202c;
    color: #cbd5e0;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 30px 20px;
    }

    .legal-content h1 {
        font-size: 2rem;
    }

    .legal-content h2 {
        font-size: 1.5rem;
    }

    .legal-content h3 {
        font-size: 1.2rem;
    }
}
