/* Root Variables */
:root {
    --primary-color: #1e40af;
    --primary-blue: #3b82f6;
    --accent-red: #ef4444;
    --success-green: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --gradient-hero: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
}

/* Header */
.header {
    background: var(--gradient-hero);
    padding: 3rem 0 2rem;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-red), var(--success-green), var(--primary-color));
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    background: var(--accent-red);
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    box-shadow: var(--shadow-md);
}

.logo i {
    color: white;
    font-size: 1.5rem;
}

.brand-name {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    letter-spacing: 2px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.page-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Tabs */
.tabs-container {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    padding: 0.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    overflow-x: auto;
}

.tab-button {
    flex: 1;
    min-width: 200px;
    padding: 1rem 1.5rem;
    border: 2px solid transparent;
    background: transparent;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab-button i {
    font-size: 1.2rem;
}

.tab-button:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.tab-button.active {
    background: var(--gradient-hero);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

/* Legal Sections */
.legal-section {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.legal-section:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.legal-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-section h2::before {
    content: '📋';
    font-size: 1.5rem;
}

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

.legal-section p {
    margin-bottom: 1rem;
    color: var(--text-dark);
    text-align: justify;
}

.legal-section ul {
    margin: 1rem 0 1rem 1.5rem;
    list-style: none;
}

.legal-section ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.legal-section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: bold;
    font-size: 1.1rem;
}

.legal-section ul li strong {
    color: var(--primary-color);
}

/* Info Boxes */
.info-box, .warning-box {
    padding: 1.25rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
    align-items: start;
}

.info-box {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--primary-blue);
}

.info-box i {
    color: var(--primary-blue);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-box p {
    margin: 0;
    color: var(--text-dark);
}

.warning-box {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--accent-red);
}

.warning-box i {
    color: var(--accent-red);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.warning-box p {
    margin: 0;
    color: var(--text-dark);
}

/* Contact Box */
.contact-box {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.3rem;
    width: 30px;
    text-align: center;
}

.contact-item span {
    color: var(--text-dark);
    font-weight: 500;
}

/* Cookie Table */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
    border-radius: 10px;
    overflow: hidden;
}

.cookie-table thead {
    background: var(--gradient-hero);
    color: white;
}

.cookie-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.cookie-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

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

.cookie-table td {
    padding: 1rem;
    color: var(--text-dark);
}

.cookie-table tbody tr:last-child {
    border-bottom: none;
}

/* Cookie Settings */
.cookie-settings {
    text-align: center;
    margin: 2rem 0;
}

.btn-primary {
    background: var(--gradient-hero);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary i {
    font-size: 1.1rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-hero);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.back-to-top i {
    font-size: 1.3rem;
}

/* Print Button */
.print-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.print-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: rotate(5deg);
}

/* Footer */
.legal-footer {
    background: var(--text-dark);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .tabs-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tab-button {
        min-width: auto;
        width: 100%;
    }

    .legal-section {
        padding: 1.5rem;
    }

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

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

    .contact-box {
        padding: 1rem;
    }

    .contact-item {
        font-size: 1rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .print-btn {
        position: static;
        margin: 1rem auto 0;
        display: flex;
    }

    .cookie-table {
        font-size: 0.9rem;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .brand-name {
        font-size: 1.5rem;
    }

    .page-title {
        font-size: 1.7rem;
    }

    .legal-section {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

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

    .legal-section ul {
        margin-left: 1rem;
    }

    .legal-section ul li {
        font-size: 0.95rem;
    }

    .info-box, .warning-box {
        padding: 1rem;
        flex-direction: column;
    }

    .info-box i, .warning-box i {
        font-size: 1.3rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .tabs-container,
    .back-to-top,
    .print-btn,
    .legal-footer,
    .cookie-settings {
        display: none !important;
    }

    .tab-content {
        display: block !important;
        page-break-inside: avoid;
    }

    .legal-section {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--border-color);
    }

    body {
        background: white;
    }
}

/* Accessibility */
.tab-button:focus,
.btn-primary:focus,
.back-to-top:focus,
.print-btn:focus {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: var(--primary-blue);
    color: white;
}

::-moz-selection {
    background: var(--primary-blue);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}