/* COOKIE-POLICY.CSS - Estilos para a Política de Cookies */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #007cba;
}

.header h1 {
    color: #007cba;
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.header p {
    color: #666;
    font-size: 1.1em;
}

/* Last Updated */
.last-updated {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #007cba;
    font-size: 14px;
}

.last-updated strong {
    color: #007cba;
}

/* Table of Contents */
.toc {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.toc h3 {
    color: #007cba;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.toc ul {
    list-style: none;
}

.toc li {
    margin-bottom: 8px;
}

.toc a {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.toc a:hover {
    text-decoration: underline;
    color: #005a87;
}

.toc a.active {
    font-weight: bold;
    color: #005a87;
}

/* Sections */
.section {
    margin-bottom: 40px;
}

.section h2 {
    color: #007cba;
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
}

.section h3 {
    color: #333;
    font-size: 1.3em;
    margin-bottom: 15px;
    margin-top: 25px;
    font-weight: 600;
}

.section h4 {
    color: #007cba;
    font-size: 1.1em;
    margin-bottom: 10px;
    font-weight: 600;
}

.section p {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.7;
}

.section ul,
.section ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

.section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Cookie Table */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.cookie-table th,
.cookie-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.cookie-table th {
    background: #007cba;
    color: white;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-table tr:nth-child(even) {
    background: #f9f9f9;
}

.cookie-table tr:hover {
    background: #f0f8ff;
    transition: background 0.3s ease;
}

.cookie-table td {
    vertical-align: top;
}

.cookie-table td:first-child {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #007cba;
}

/* Cookie Categories */
.cookie-category {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #007cba;
}

.cookie-category h4 {
    color: #007cba;
    margin-bottom: 10px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-category p {
    margin-bottom: 15px;
    color: #555;
}

.cookie-category ul {
    margin-left: 20px;
}

.cookie-category li {
    margin-bottom: 8px;
}

.cookie-category li strong {
    color: #333;
}

/* Highlight Boxes */
.highlight-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #ffc107;
}

.highlight-box.important {
    background: #f8d7da;
    border-color: #f5c6cb;
    border-left-color: #dc3545;
}

.highlight-box.success {
    background: #d4edda;
    border-color: #c3e6cb;
    border-left-color: #28a745;
}

.highlight-box h4 {
    color: #856404;
    margin-bottom: 10px;
    font-weight: 600;
}

.highlight-box.important h4 {
    color: #721c24;
}

.highlight-box.success h4 {
    color: #155724;
}

.highlight-box p {
    margin-bottom: 10px;
}

.highlight-box ul {
    margin-top: 10px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin: 10px 10px 10px 0;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn.secondary {
    background: #6c757d;
}

.btn.secondary:hover {
    background: #545b62;
}

/* Contact Info */
.contact-info {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-info h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info a {
    color: #add8e6;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
    }

    .header h1 {
        font-size: 2em;
    }

    .section h2 {
        font-size: 1.5em;
    }

    .section h3 {
        font-size: 1.2em;
    }

    .cookie-table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 8px;
    }

    .cookie-category {
        padding: 15px;
    }

    .highlight-box {
        padding: 15px;
    }

    .contact-info {
        padding: 20px;
    }

    .btn {
        display: block;
        text-align: center;
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 5px;
        padding: 10px;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .section {
        margin-bottom: 30px;
    }

    .toc {
        padding: 15px;
    }

    .cookie-table {
        font-size: 11px;
    }

    .last-updated {
        padding: 12px;
        font-size: 13px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        font-size: 12px;
        line-height: 1.4;
    }

    .container {
        box-shadow: none;
        margin: 0;
        padding: 0;
    }

    .btn {
        display: none;
    }

    .toc {
        page-break-after: always;
    }

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

    .cookie-table {
        page-break-inside: avoid;
    }

    .contact-info {
        background: #f0f0f0 !important;
        color: black !important;
        border: 1px solid #ccc;
    }

    .contact-info a {
        color: #007cba !important;
    }

    .highlight-box {
        border: 1px solid #ccc !important;
        background: #f9f9f9 !important;
    }

    .cookie-category {
        border: 1px solid #ccc !important;
        background: white !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #e0e0e0;
    }

    .container {
        background: #2d2d2d;
        box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    }

    .header {
        border-bottom-color: #5bc0de;
    }

    .header h1 {
        color: #5bc0de;
    }

    .section h2 {
        color: #5bc0de;
        border-bottom-color: #444;
    }

    .section h3,
    .section h4 {
        color: #e0e0e0;
    }

    .toc {
        background: #3a3a3a;
        border-color: #555;
    }

    .toc h3 {
        color: #5bc0de;
    }

    .toc a {
        color: #5bc0de;
    }

    .cookie-category {
        background: #3a3a3a;
        border-color: #555;
        border-left-color: #5bc0de;
    }

    .cookie-table th {
        background: #5bc0de;
        color: #1a1a1a;
    }

    .cookie-table tr:nth-child(even) {
        background: #3a3a3a;
    }

    .cookie-table tr:hover {
        background: #4a4a4a;
    }

    .highlight-box {
        background: #3a3a3a;
        border-color: #555;
        color: #e0e0e0;
    }

    .last-updated {
        background: #3a3a3a;
        border-left-color: #5bc0de;
        color: #e0e0e0;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Focus Styles */
.btn:focus,
.toc a:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .container {
        border: 2px solid #000;
    }

    .header {
        border-bottom: 3px solid #000;
    }

    .section h2 {
        border-bottom: 2px solid #000;
    }

    .cookie-table {
        border: 2px solid #000;
    }

    .cookie-table th,
    .cookie-table td {
        border: 1px solid #000;
    }

    .btn {
        border: 2px solid #000;
    }

    .highlight-box,
    .cookie-category,
    .toc,
    .last-updated {
        border: 2px solid #000;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Colors */
::selection {
    background: #007cba;
    color: white;
}

::-moz-selection {
    background: #007cba;
    color: white;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #007cba;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #005a87;
}