/* =====================================================
   legal.css — Páginas Política de Privacidade e Termos
   Exclusivo para privacidade.html e termos.html
   ===================================================== */

/* ---------- Hero ---------- */
.legal-hero {
    background:
        linear-gradient(120deg, rgba(12, 30, 11, 0.86) 0%, rgba(21, 46, 18, 0.72) 48%, rgba(212, 175, 55, 0.3) 100%),
        url('../img/pages/historia-islam/historia-do-islam-lg.webp') center center / cover no-repeat;
    color: white;
    padding: 60px 0 40px 0;
    margin-top: 80px;
    text-align: center;
}

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

.legal-hero-content {
    max-width: 860px;
    background: rgba(12, 20, 10, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(3px);
    padding: 18px 18px;
}

.legal-hero-content h1 {
    color: #fff;
    font-size: 2.5em;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.legal-hero-content p {
    color: rgba(255, 255, 255, 0.97);
    font-size: 1.2em;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
}

/* ---------- Content wrapper ---------- */
.legal-content {
    padding: 60px 0;
    background: #f8f8f8;
}

/* ---------- Estrutura HTML vinda dos docs ---------- */
.legal-doc > .legal-doc-head,
.legal-doc > section,
.legal-doc > footer {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-color);
}

.legal-doc > .legal-doc-head h1 {
    color: var(--primary-color);
    font-size: 2em;
    margin: 12px 0;
}

.legal-doc > .legal-doc-head p,
.legal-doc > footer p,
.legal-doc section p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
}

.legal-doc section h1 {
    color: var(--primary-color);
    font-size: 1.6em;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--gold-color);
    padding-bottom: 10px;
}

.legal-doc section h2 {
    color: var(--primary-color);
    font-size: 1.3em;
    margin: 24px 0 14px;
}

.legal-doc section h3 {
    color: var(--primary-color);
    font-size: 1.2em;
    margin: 24px 0 14px;
}

.legal-doc h1,
.legal-doc h2,
.legal-doc h3,
.legal-doc h4,
.legal-doc h5,
.legal-doc h6 {
    text-align: left;
}

.legal-doc section ul {
    margin: 15px 0;
    padding-left: 25px;
}

.legal-doc section li {
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
}

.legal-doc strong {
    color: var(--primary-color);
}

.legal-doc a {
    color: var(--gold-color);
    text-decoration: underline;
    font-weight: 500;
}

.legal-doc a:hover {
    color: var(--gold-dark);
}

.legal-doc table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.92em;
}

.legal-doc table th {
    background: var(--primary-color);
    color: white;
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
}

.legal-doc table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e0e0e0;
    color: #555;
    vertical-align: top;
    line-height: 1.5;
}

.legal-doc table tr:nth-child(even) td {
    background: #fafafa;
}

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

.legal-doc blockquote {
    margin: 18px 0;
    padding: 14px 16px;
    border-left: 4px solid var(--gold-color);
    background: #f7f4e7;
    border-radius: 6px;
    color: #4a4a4a;
    font-style: italic;
    line-height: 1.65;
}

.legal-doc > footer {
    background: var(--primary-color);
    border-left-color: var(--primary-color);
    min-height: auto;
    padding: 22px 24px;
    position: static;
}

.legal-doc > footer::before {
    content: none;
}

.legal-doc > footer p,
.legal-doc > footer em {
    color: white;
}

/* ---------- Section card ---------- */
.legal-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-color);
}

.legal-section h2 {
    color: var(--primary-color);
    font-size: 1.6em;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--gold-color);
    padding-bottom: 10px;
}

.legal-section h3 {
    color: var(--secondary-color);
    font-size: 1.3em;
    margin: 25px 0 15px 0;
}

.legal-section h1,
.legal-section h2,
.legal-section h3,
.legal-section h4,
.legal-section h5,
.legal-section h6 {
    text-align: left;
}

.legal-section p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.legal-section ul {
    margin: 15px 0;
    padding-left: 25px;
}

.legal-section li {
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
}

.legal-section blockquote {
    margin: 18px 0;
    padding: 14px 16px;
    border-left: 4px solid var(--gold-color);
    background: #f7f4e7;
    border-radius: 6px;
    color: #4a4a4a;
    font-style: italic;
    line-height: 1.65;
}

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

.legal-section a {
    color: var(--gold-color);
    text-decoration: underline;
    font-weight: 500;
}

.legal-section a:hover {
    color: var(--secondary-color);
}

/* ---------- Info block (Responsável, Contato) ---------- */
.legal-info-block {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.legal-info-block p {
    margin: 8px 0;
    color: #555;
}

/* ---------- Tables ---------- */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.92em;
}

.legal-table th {
    background: var(--primary-color);
    color: white;
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
}

.legal-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e0e0e0;
    color: #555;
    vertical-align: top;
    line-height: 1.5;
}

.legal-table tr:nth-child(even) td {
    background: #fafafa;
}

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

.legal-table a {
    color: var(--gold-color);
    text-decoration: underline;
}

/* ---------- Footer bar ---------- */
.legal-footer {
    background: var(--primary-color);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
}

.legal-footer p {
    color: white;
    margin: 5px 0;
}

.legal-footer a {
    color: var(--gold-color);
    text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    /* Hero: zeroes margin-top (mobile body has padding-top: 80px via responsive.css) */
    .legal-hero {
        margin-top: 0;
        padding: 40px 0 28px;
    }

    .legal-hero-content h1 {
        font-size: 1.8em;
    }

    .legal-hero-content p {
        font-size: 1em;
    }

    /* Section cards: reduced padding only, no overflow here */
    .legal-section,
    .legal-doc > .legal-doc-head,
    .legal-doc > section,
    .legal-doc > footer {
        padding: 18px;
    }

    /* Wrap each table in .table-scroll-wrapper in the HTML;
       only the wrapper scrolls — not the whole section */
    .table-scroll-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 20px 0;
    }

    /* Tables: keep display:table so layout stays intact;
       min-width forces overflow into the wrapper */
    .table-scroll-wrapper .legal-table,
    .table-scroll-wrapper table {
        min-width: 580px;
        font-size: 0.83em;
        margin: 0;
    }

    .table-scroll-wrapper th,
    .table-scroll-wrapper td {
        padding: 8px 10px;
    }
}
