/* Legal Pages Styling - Using Qwiken Website Theme */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1A2533;
    --primary-dark: #0F1419;
    --secondary-color: #00C9A7;
    --accent-color: #00C9A7;
    --text-primary: #1A2533;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --background: #FFFFFF;
    --background-light: #F0FFFE;
    --border-color: #E5E7EB;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Inter';
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    overflow-x: hidden;
}

/* Legal Page Container */
.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    background: var(--background);
}

/* Legal Page Header */
.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 2px solid var(--accent-color);
}

.legal-logo {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.legal-logo img {
    width: 60px;
    height: 60px;
}

.legal-logo span {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.legal-header h1 {
    color: var(--primary-color);
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

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

/* Legal Sections */
.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

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

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

.legal-section li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.legal-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Highlight Box */
.highlight-box {
    background: var(--background-light);
    padding: 1.5rem;
    border-left: 4px solid var(--accent-color);
    margin: 1.5rem 0;
    border-radius: var(--radius);
}

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

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

.highlight-box p:last-child {
    margin-bottom: 0;
}

/* Table Styles */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.legal-table thead {
    background: var(--primary-color);
    color: white;
}

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

.legal-table th {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legal-table td {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

/* Links */
.legal-section a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Legal Footer */
.legal-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.legal-footer p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.legal-footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.legal-footer-links a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Back to Top */
.back-to-home {
    display: inline-block;
    margin: 2rem 0 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.back-to-home:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-container {
        padding: 1.5rem 1rem;
    }

    .legal-header {
        padding: 1.5rem 0;
        margin-bottom: 2rem;
    }

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

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

    .legal-section h3 {
        font-size: 1.125rem;
    }

    .legal-table {
        font-size: 0.85rem;
    }

    .legal-table th,
    .legal-table td {
        padding: 0.75rem 0.5rem;
    }

    .highlight-box {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .back-to-home,
    .legal-footer-links {
        display: none;
    }

    .legal-container {
        padding: 0;
    }

    .legal-section {
        page-break-inside: avoid;
    }
}
