/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
.header {
    background: linear-gradient(135deg, #d02027 0%, #d02027 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    text-align: center;
}

/* Main content */
.main {
    padding: clamp(2rem, 5vw, 3rem) 0;
    min-height: calc(100vh - 200px);
}

/* Policy content */
.policy-content {
    background: white;
    border-radius: 12px;
    padding: clamp(2rem, 5vw, 3rem);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
}

.policy-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
}

.policy-header h1 {
    font-size: clamp(2rem, 6vw, 2.5rem);
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.policy-header time {
    color: #6c757d;
    font-size: clamp(1rem, 3vw, 1.1rem);
    font-weight: 500;
}

/* Policy sections */
.policy-section {
    margin-bottom: 2.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.policy-section h2 {
    color: #2c3e50;
    font-size: clamp(1.3rem, 4vw, 1.5rem);
    margin-bottom: 1rem;
    font-weight: 600;
    border-left: 4px solid #d02027;
    padding-left: 1rem;
    line-height: 1.3;
}

.policy-section p {
    margin-bottom: 1rem;
    text-align: justify;
    color: #495057;
    font-size: clamp(0.95rem, 2.5vw, 1rem);
    line-height: 1.7;
    word-spacing: 0.1em;
}

.policy-section ul {
    margin: 1rem 0;
    padding-left: clamp(1.5rem, 4vw, 2rem);
}

.policy-section li {
    margin-bottom: 0.5rem;
    color: #495057;
    font-size: clamp(0.95rem, 2.5vw, 1rem);
    line-height: 1.6;
}

/* Highlight box */
.highlight-box {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border: 1px solid #d1ecf1;
    border-radius: 8px;
    padding: clamp(1rem, 3vw, 1.5rem);
    margin: 1.5rem 0;
    word-wrap: break-word;
}

.highlight-box p {
    margin-bottom: 1rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: clamp(0.95rem, 2.5vw, 1rem);
}

.highlight-box ul {
    margin-bottom: 0;
}

.highlight-box a {
    color: #d02027;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    word-break: break-all;
}

.highlight-box a:hover {
    color: #d02027;
    text-decoration: underline;
}

/* Links */
a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-word;
}

a:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #141414;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* Responsive breakpoints */

/* Tablets */
@media (max-width: 1024px) {
    .container {
        padding: 0 25px;
    }
    
    .policy-content {
        margin: 0 15px;
    }
}

/* Small tablets and large phones */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .header {
        padding: 1.2rem 0;
    }
    
    .policy-content {
        margin: 0 10px;
        border-radius: 8px;
    }
    
    .policy-section h2 {
        padding-left: 0.8rem;
        border-left-width: 3px;
    }
    
    .policy-section p {
        text-align: left;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .header {
        padding: 1rem 0;
    }
    
    .policy-content {
        margin: 0 5px;
        border-radius: 6px;
    }
    
    .policy-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .policy-section {
        margin-bottom: 2rem;
    }
    
    .policy-section h2 {
        padding-left: 0.6rem;
        border-left-width: 3px;
        margin-bottom: 0.8rem;
    }
    
    .policy-section ul {
        padding-left: 1.2rem;
    }
    
    .highlight-box {
        margin: 1rem 0;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .main {
        padding: 1.5rem 0;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    html {
        font-size: 13px;
    }
    
    .policy-content {
        margin: 0;
        border-radius: 0;
    }
    
    .container {
        padding: 0 8px;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .policy-content {
        padding: 4rem;
    }
}

/* Animações suaves */
.policy-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.policy-section:nth-child(1) { animation-delay: 0.1s; }
.policy-section:nth-child(2) { animation-delay: 0.2s; }
.policy-section:nth-child(3) { animation-delay: 0.3s; }
.policy-section:nth-child(4) { animation-delay: 0.4s; }
.policy-section:nth-child(5) { animation-delay: 0.5s; }
.policy-section:nth-child(6) { animation-delay: 0.6s; }
.policy-section:nth-child(7) { animation-delay: 0.7s; }
.policy-section:nth-child(8) { animation-delay: 0.8s; }
.policy-section:nth-child(9) { animation-delay: 0.9s; }

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

/* Melhorias de acessibilidade */
:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Reduzir animações para usuários que preferem */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    .header,
    .footer {
        display: none;
    }
    
    .policy-content {
        box-shadow: none;
        border: 1px solid #ddd;
        padding: 2rem;
    }
    
    body {
        background: white;
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .policy-header h1 {
        font-size: 18pt;
    }
    
    .policy-section h2 {
        font-size: 14pt;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .policy-content {
        box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    }
}