/* ========================================
   JC OFTALMOLOGIA - POLÍTICA DE PRIVACIDADE
   Paleta: Azul #1e3a8a | Vermelho #dc2626
   ======================================== */

:root {
    --primary: #1e3a8a;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --accent: #dc2626;
    --accent-hover: #b91c1c;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e5e7eb;
    --success: #059669;
    --warning: #d97706;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 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);
}

/* Reset e Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bg-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* ========================================
   HEADER
   ======================================== */

.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--text-dark) 100%);
    color: white;
    padding: 0.75rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
}

.logo-img {
    width: 100px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    background: white;
    padding: 2px;
}

.logo-text h2 {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.logo-text span {
    font-size: 0.7rem;
    opacity: 0.9;
    font-weight: 500;
    display: block;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-phone {
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ========================================
   HERO POLÍTICA
   ======================================== */

.hero-policy {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-policy::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.hero-policy-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-policy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-policy-badge i { color: #fbbf24; }

.hero-policy h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-policy p {
    font-size: 1.125rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   CONTENT SECTION
   ======================================== */

.policy-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.policy-intro {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    border-left: 4px solid var(--primary);
}

.policy-intro p {
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.8;
}

.policy-intro strong {
    color: var(--text-dark);
}

/* Accordion Sections */
.policy-section {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border);
}

.policy-section-header {
    width: 100%;
    padding: 1.5rem 2rem;
    background: white;
    border: none;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.policy-section-header:hover {
    background: var(--bg-light);
}

.policy-section-header i {
    color: var(--primary);
    transition: transform 0.3s;
    font-size: 1rem;
}

.policy-section.active .policy-section-header i {
    transform: rotate(180deg);
}

.policy-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 800;
    margin-right: 1rem;
    flex-shrink: 0;
}

.policy-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: var(--bg-light);
}

.policy-section.active .policy-section-content {
    max-height: 2000px;
    padding: 2rem;
}

.policy-section-content p,
.policy-section-content li {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.policy-section-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.policy-section-content li {
    margin-bottom: 0.5rem;
}

.policy-section-content strong {
    color: var(--text-dark);
}

.policy-section-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.policy-section-content a:hover {
    text-decoration: underline;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
    margin: 1.5rem 0;
}

.highlight-box p {
    margin-bottom: 0 !important;
    color: var(--text-dark) !important;
    font-weight: 500;
}

.highlight-box i {
    color: var(--primary);
    margin-right: 0.5rem;
}

/* Warning Box */
.warning-box-privacy {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid var(--warning);
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
    margin: 1.5rem 0;
}

.warning-box-privacy p {
    margin-bottom: 0 !important;
    color: var(--text-dark) !important;
}

.warning-box-privacy i {
    color: var(--warning);
    margin-right: 0.5rem;
}

/* Contact Box */
.contact-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    margin: 3rem 0;
}

.contact-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-box p {
    opacity: 0.95;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contact-box .btn {
    margin: 0.5rem;
}

/* ========================================
   LAST UPDATE
   ======================================== */

.last-update {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.last-update i {
    color: var(--success);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.last-update p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

.last-update strong {
    color: var(--text-dark);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: #1a1a2e;
    color: white;
    padding: 3rem 2rem 1.5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section a:hover {
    color: white;
}

.footer-section-logo {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo-img {
    width: 100px;
    height: 75px;
    border-radius: 12px;
    object-fit: cover;
    background: white;
    padding: 2px;
}

.footer-link-whatsapp {
    color: #25d366 !important;
    font-weight: 600;
}

.footer-link-whatsapp:hover {
    color: #34d399 !important;
}

.footer-link-maps {
    color: var(--primary-light) !important;
}

.footer-link-maps:hover {
    color: #60a5fa !important;
}

/* Social Media Bar */
.footer-social {
    max-width: 1200px;
    margin: 1rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-social-title {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-social-link {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.footer-social-link.facebook { background: #1877f2; }
.footer-social-link.facebook:hover { background: #166fe5; }

.footer-social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.footer-social-link.instagram:hover { filter: brightness(1.1); }

.footer-social-link.googlemaps { background: #ea4335; }
.footer-social-link.googlemaps:hover { background: #d33b28; }

.footer-social-link.whatsapp { background: #25d366; }
.footer-social-link.whatsapp:hover { background: #128c7e; }

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: white;
    text-decoration: underline;
}

/* ========================================
   FLOATING WHATSAPP
   ======================================== */

.float-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.float-whatsapp:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.float-whatsapp::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25d366;
    animation: ripple 2s infinite;
    z-index: -1;
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ========================================
   RESPONSIVO
   ======================================== */

@media (min-width: 768px) {
    .header-phone { display: block; }
    .footer-container { grid-template-columns: repeat(3, 1fr); }
    .footer-section-logo { text-align: left; }
    .footer-logo-img { margin-bottom: 1.5rem; }
    .policy-section-header { font-size: 1.25rem; }
}

@media (max-width: 768px) {
    .header-phone { display: none; }
    .hero-policy { padding-top: 7rem; }
    .hero-policy h1 { font-size: 1.875rem; }
    .policy-content { padding: 2rem 1rem; }
    .policy-section-header { padding: 1.25rem; font-size: 1rem; }
    .policy-section.active .policy-section-content { padding: 1.5rem; }
    .contact-box { padding: 1.5rem; }
    .contact-box .btn { width: 100%; margin: 0.5rem 0; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-logo-img { margin: 0 auto; }
    .float-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 380px) {
    .float-whatsapp {
        width: 48px;
        height: 48px;
        font-size: 1.35rem;
        bottom: 12px;
        right: 12px;
    }
    .header-container { padding: 0 1rem; }
    .logo-img { height: 36px; }
    .logo-text h2 { font-size: 0.85rem; }
    .logo-text span { font-size: 0.65rem; }
}