/* Legal Pages Stylesheet */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
}

/* Header */
.legal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px 40px;
    position: relative;
}

.back-link {
    margin-bottom: 20px;
}

.back-link a {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.back-link a:hover {
    opacity: 1;
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.last-updated {
    font-size: 0.9rem;
    opacity: 0.9;
    font-style: italic;
}

/* Content */
.legal-content {
    padding: 40px;
}

.legal-content section {
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2d3748;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.legal-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 25px 0 15px;
    color: #4a5568;
}

.legal-content p {
    margin-bottom: 15px;
    text-align: justify;
    color: #4a5568;
}

.legal-content ul,
.legal-content ol {
    margin: 15px 0 20px 30px;
    color: #4a5568;
}

.legal-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.legal-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content strong {
    color: #2d3748;
    font-weight: 600;
}

.legal-content code {
    background: #f7fafc;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e53e3e;
    border: 1px solid #e2e8f0;
}

/* Tables */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

.cookie-table thead {
    background: #667eea;
    color: white;
}

.cookie-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.cookie-table td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.cookie-table tbody tr:last-child td {
    border-bottom: none;
}

.cookie-table tbody tr:hover {
    background: #f7fafc;
}

/* Cookie Settings Button */
.cookie-settings {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    margin: 20px 0;
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    margin-top: 10px;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Agreement Section */
.agreement {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 20px;
    border-radius: 8px;
    margin-top: 40px;
}

.agreement p {
    margin: 0;
    color: #92400e;
    font-weight: 500;
}

/* Footer */
.legal-footer {
    background: #2d3748;
    color: white;
    padding: 30px 40px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.legal-footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-header {
        padding: 40px 25px 30px;
    }

    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-content {
        padding: 30px 25px;
    }

    .legal-content h2 {
        font-size: 1.5rem;
    }

    .legal-content h3 {
        font-size: 1.2rem;
    }

    .legal-content ul,
    .legal-content ol {
        margin-left: 20px;
    }

    .cookie-table {
        font-size: 0.85rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 10px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .legal-footer {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 1.75rem;
    }

    .legal-content {
        padding: 20px 15px;
    }

    .legal-content h2 {
        font-size: 1.3rem;
    }

    .cookie-table {
        display: block;
        overflow-x: auto;
    }
}

/* Print Styles */
@media print {
    .back-link,
    .legal-footer,
    .btn {
        display: none;
    }

    .legal-header {
        background: white;
        color: black;
        border-bottom: 2px solid #333;
    }

    .legal-content {
        padding: 20px 0;
    }

    .legal-content a {
        color: black;
        text-decoration: underline;
    }
}
