/* ============================================
   BRAGA CONSULTORIA - CSS PÁGINAS LEGAIS
   Política de Privacidade & Termos de Uso
   ============================================ */

/* ============================================
   HERO DA PÁGINA LEGAL
   ============================================ */
.legal-hero {
    background: linear-gradient(135deg, #1a2e1a 0%, #2d5a2d 40%, #1f4a1f 100%);
    padding: 70px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.purple-hero {
    background: linear-gradient(135deg, #1a0a2e 0%, #4a1f8f 40%, #2d1b69 100%);
}

.legal-hero-content { position: relative; z-index: 1; }

.legal-icon {
    width: 80px;
    height: 80px;
    background: rgba(65, 184, 65, 0.2);
    border: 2px solid rgba(65, 184, 65, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: #41B841;
}

.purple-icon {
    background: rgba(122, 67, 182, 0.2);
    border-color: rgba(122, 67, 182, 0.5);
    color: #b07aff;
}

.legal-hero h1 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.legal-hero p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 24px;
}

.legal-meta {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.legal-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
}

.legal-meta i { color: #41B841; }

/* ============================================
   LAYOUT PRINCIPAL
   ============================================ */
.legal-main {
    padding: 60px 0 80px;
    background: #f8f8f8;
}

.legal-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* ============================================
   SIDEBAR
   ============================================ */
.legal-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
    background: #ffffff;
    border-radius: 14px;
    padding: 28px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-top: 4px solid #41B841;
}

.sidebar-sticky h3 {
    font-size: 15px;
    font-weight: 700;
    color: #585858;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-sticky h3 i { color: #41B841; }

.summary-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.summary-nav a {
    color: #585858;
    font-size: 13.5px;
    padding: 7px 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.4;
    display: block;
}

.summary-nav a:hover {
    background: rgba(65, 184, 65, 0.1);
    color: #41B841;
    padding-left: 14px;
}

.sidebar-back {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #41B841;
    color: white !important;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.sidebar-back:hover {
    background: #35a035;
    transform: translateX(-3px);
}

/* ============================================
   CONTEÚDO LEGAL
   ============================================ */
.legal-content {
    background: #ffffff;
    border-radius: 14px;
    padding: 48px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* Intro Box */
.legal-intro-box {
    background: linear-gradient(135deg, rgba(65,184,65,0.06) 0%, rgba(65,184,65,0.12) 100%);
    border-left: 4px solid #41B841;
    border-radius: 0 10px 10px 0;
    padding: 20px 24px;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.purple-intro {
    background: linear-gradient(135deg, rgba(122,67,182,0.06) 0%, rgba(122,67,182,0.12) 100%);
    border-left-color: #7A43B6;
}

.legal-intro-box i {
    color: #41B841;
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.purple-intro i { color: #7A43B6; }

.legal-intro-box p {
    color: #444;
    font-size: 15px;
    line-height: 1.75;
    margin: 0;
}

/* Seções */
.legal-section {
    margin-bottom: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.legal-section:last-of-type {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 22px;
    font-weight: 800;
    color: #2a2a2a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #41B841;
    color: white;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 800;
    flex-shrink: 0;
}

.purple-num { background: #7A43B6; }

.legal-section h3 {
    font-size: 17px;
    font-weight: 700;
    color: #3a3a3a;
    margin: 20px 0 12px;
}

.legal-section p {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 14px;
}

.legal-section a {
    color: #41B841;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-section a:hover { color: #35a035; }

/* Listas */
.legal-list {
    list-style: none;
    margin: 12px 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    padding: 10px 14px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.legal-list li i {
    color: #41B841;
    flex-shrink: 0;
    margin-top: 3px;
    width: 16px;
}

.legal-list li i.fa-times { color: #E63B2E; }
.legal-list li i.fa-ban { color: #E63B2E; }

/* ============================================
   CARDS DE INFORMAÇÃO
   ============================================ */
.info-card {
    background: #f8f8f8;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    margin: 16px 0 20px;
}

.purple-card-info {
    border-top: 3px solid #7A43B6;
}

.info-card:not(.purple-card-info) {
    border-top: 3px solid #41B841;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid #efefef;
}

.info-row:last-child { border-bottom: none; }

.info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7A7A7A;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    min-width: 160px;
    flex-shrink: 0;
}

.info-label i { color: #41B841; width: 16px; }

.info-value {
    color: #333;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

.info-value a {
    color: #41B841;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ============================================
   ALERT BOXES
   ============================================ */
.alert-box {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 10px;
    margin: 20px 0;
    align-items: flex-start;
}

.alert-box i {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-box p {
    font-size: 14.5px;
    margin: 0;
    line-height: 1.65;
}

.alert-box a {
    font-weight: 600;
    text-decoration: underline;
}

.alert-box.warning {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-left: 4px solid #ffc107;
}

.alert-box.warning i { color: #e6a800; }
.alert-box.warning p { color: #7a5c00; }

.alert-box.success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-left: 4px solid #41B841;
}

.alert-box.success i { color: #2e7d32; }
.alert-box.success p { color: #1b5e20; }

.alert-box.info {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-left: 4px solid #1976d2;
}

.alert-box.info i { color: #1976d2; }
.alert-box.info p { color: #0d47a1; }
.alert-box.info a { color: #1976d2; }

/* ============================================
   GRIDS DE FINALIDADES
   ============================================ */
.purpose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 20px 0;
}

.purpose-card {
    border-radius: 12px;
    padding: 22px 18px;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.purpose-card:hover { transform: translateY(-4px); }

.purpose-card.green {
    background: rgba(65, 184, 65, 0.06);
    border-color: rgba(65, 184, 65, 0.2);
}

.purpose-card.purple {
    background: rgba(122, 67, 182, 0.06);
    border-color: rgba(122, 67, 182, 0.2);
}

.purpose-card.red {
    background: rgba(230, 59, 46, 0.06);
    border-color: rgba(230, 59, 46, 0.2);
}

.purpose-card i {
    font-size: 28px;
    margin-bottom: 12px;
    display: block;
}

.purpose-card.green i { color: #41B841; }
.purpose-card.purple i { color: #7A43B6; }
.purpose-card.red i { color: #E63B2E; }

.purpose-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.purpose-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.55;
    margin: 0;
}

/* ============================================
   TABELA LEGAL
   ============================================ */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.legal-table thead tr {
    background: #41B841;
    color: white;
}

.legal-table thead th {
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.legal-table tbody tr:hover { background: #fafafa; }

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

.legal-table tbody td {
    padding: 13px 16px;
    font-size: 14px;
    color: #444;
    vertical-align: middle;
}

/* ============================================
   GRID DE DIREITOS
   ============================================ */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.right-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.right-item:hover {
    border-color: #41B841;
    background: rgba(65, 184, 65, 0.04);
    transform: translateY(-2px);
}

.right-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.right-icon.green { background: rgba(65, 184, 65, 0.12); color: #41B841; }
.right-icon.purple { background: rgba(122, 67, 182, 0.12); color: #7A43B6; }
.right-icon.red { background: rgba(230, 59, 46, 0.12); color: #E63B2E; }

.right-text h4 {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.right-text p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   RODAPÉ DO DOCUMENTO
   ============================================ */
.legal-footer-doc {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #eee;
    text-align: center;
}

.legal-footer-circles {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.lfc {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.lfc.green { background: #41B841; }
.lfc.purple { background: #7A43B6; }
.lfc.red { background: #E63B2E; }

.legal-footer-doc p {
    font-size: 13.5px;
    color: #777;
    margin-bottom: 5px;
}

.legal-footer-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

.legal-footer-links a {
    color: #41B841;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.legal-footer-links a:hover,
.legal-footer-links a.active { color: #35a035; text-decoration: underline; }

.legal-footer-links span { color: #ccc; }

/* ============================================
   BANNER DE COOKIES LGPD
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #1e1e1e;
    color: white;
    padding: 20px 0;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.3);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-banner.show { transform: translateY(0); }

.cookie-banner-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.cookie-banner-text {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
    min-width: 280px;
}

.cookie-banner-text i {
    font-size: 28px;
    color: #41B841;
    flex-shrink: 0;
    margin-top: 2px;
}

.cookie-banner-text p {
    font-size: 13.5px;
    color: rgba(255,255,255,0.85);
    margin: 0;
    line-height: 1.65;
}

.cookie-banner-text a {
    color: #41B841;
    font-weight: 600;
    text-decoration: underline;
}

.cookie-banner-text strong { color: white; }

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-btn-accept {
    background: #41B841;
    color: white;
    border: none;
    padding: 11px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept:hover {
    background: #35a035;
    transform: translateY(-2px);
}

.cookie-btn-reject {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 11px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-reject:hover {
    border-color: rgba(255,255,255,0.6);
    color: white;
}

.cookie-btn-settings {
    background: transparent;
    color: rgba(255,255,255,0.5);
    border: none;
    font-size: 13px;
    cursor: pointer;
    padding: 6px;
    text-decoration: underline;
    transition: color 0.2s;
}

.cookie-btn-settings:hover { color: white; }

/* ============================================
   FOOTER LEGAL - ajustes no footer-bottom
   ============================================ */
.footer-bottom-content a {
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
    text-decoration: none;
}

.footer-bottom-content a:hover { color: #41B841; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .legal-layout {
        grid-template-columns: 240px 1fr;
        gap: 28px;
    }

    .purpose-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-sidebar { display: none; }

    .legal-content { padding: 28px 20px; }

    .purpose-grid { grid-template-columns: 1fr; }

    .rights-grid { grid-template-columns: 1fr; }

    .info-label { min-width: 120px; font-size: 12px; }

    .legal-table { font-size: 13px; }
    .legal-table thead th, .legal-table tbody td { padding: 10px 12px; }

    .cookie-banner-inner { flex-direction: column; gap: 16px; }
    .cookie-banner-actions { width: 100%; justify-content: center; }

    .legal-meta { gap: 10px; }
    .legal-meta span { font-size: 12px; padding: 5px 10px; }
}

@media (max-width: 480px) {
    .legal-hero { padding: 50px 0 40px; }
    .legal-content { padding: 20px 16px; }
    .info-row { flex-direction: column; gap: 4px; }
    .info-label { min-width: unset; }
    .cookie-btn-accept, .cookie-btn-reject { width: 100%; text-align: center; }
}
