/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors from original site */
    --primary-red: #7c1316;
    --primary-blue: #2b4c68;
    --text-gray: #727d84;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --border-gray: #e9ecef;
    --success-green: #28a745;
    --warning-orange: #fd7e14;
    --error-red: #dc3545;

    /* Typography */
    --font-heading: "Trebuchet MS", Arial, Helvetica, sans-serif;
    --font-body: "Inter", Arial, Helvetica, sans-serif;

    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 4rem 0;
    --card-padding: 2rem;

    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Transitions */
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-gray);
    background-color: var(--white);
    padding-top: 8px;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a2d40 100%);
    height: 8px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 92px;
    width: auto;
    max-width: 207px;
    object-fit: contain;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.main-nav a:hover {
    color: var(--primary-red);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.3rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-gray);
    transition: var(--transition);
}

/* Main Content */
.main-content {
    min-height: 70vh;
    padding: var(--section-padding);
}

/* Notice Section */
.notice-section {
    margin-bottom: 3rem;
}

.notice-card {
    background: transparent;
    color: var(--text-gray);
    border: 3px solid var(--primary-red);
    border-radius: 12px;
    padding: var(--card-padding);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.notice-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(124, 19, 22, 0.05) 0%, transparent 70%);
    transform: translate(30px, -30px);
}

.notice-icon {
    background: var(--primary-red);
    border-radius: 50%;
    padding: 1rem;
    flex-shrink: 0;
}

.notice-icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.notice-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-red);
}

.notice-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-gray);
}

.notice-link {
    background: var(--primary-red);
    color: var(--white);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.notice-link:hover {
    background: #9c1619;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Consultation Section */
.consultation-section {
    margin-top: 3rem;
}

.consultation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.consultation-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    width: 100%;
}

.consultation-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #3a5a7a 100%);
    color: var(--white);
    padding: 1.5rem;
}

.card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-header p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.consultation-form {
    padding: var(--card-padding);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-blue);
}

.form-group input {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(124, 19, 22, 0.1);
}

.form-group input::placeholder {
    color: #adb5bd;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, #9c1619 100%);
    color: var(--white);
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-loading {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: inline;
}

/* Result Container */
.result-container {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
    background: transparent;
}

.result-success {
    border-left-color: var(--success-green);
    background: transparent;
    color: inherit;
}

.result-error {
    border-left-color: var(--error-red);
    background: transparent;
    color: inherit;
}

.result-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.result-details {
    margin-top: 1rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item-label {
    font-weight: 500;
}

.result-item-value {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a2d40 100%);
    color: var(--white);
    margin-top: 4rem;
}

.footer-content {
    padding: 3rem 0 1rem;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--white);
    padding-left: 0.5rem;
}

.contact-info .contact-details p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-info .phone {
    font-size: 1.1rem;
    margin: 1rem 0;
}

.location-link {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
    margin-top: 0.5rem;
}

.location-link:hover {
    background: rgba(255, 255, 255, 0.2);
    padding-left: 1rem;
}

.footer-schedule {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.schedule-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    font-style: italic;
}

.schedule-info svg {
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 900px) {
    .consultation-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .main-nav {
        display: none;
        width: 100%;
        order: 3;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-gray);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .consultation-card {
        min-width: auto;
    }

    .notice-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .notice-icon {
        align-self: center;
    }

    .container {
        padding: 0 1rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .schedule-info {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 70px;
        max-width: 160px;
    }

    .main-content {
        padding: 2rem 0;
    }

    .notice-card,
    .consultation-form {
        padding: 1.5rem;
    }

    .card-header {
        padding: 1.25rem;
    }

    .card-header h3 {
        font-size: 1.2rem;
    }
}

/* Loading Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

/* Focus styles for accessibility */
.btn:focus,
.form-group input:focus,
.main-nav a:focus,
.notice-link:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

/* Page-specific styles - Cartório */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.content-grid {
    display: grid;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.content-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.content-card .card-icon {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #3a5a7a 100%);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 1rem;
}

.content-card h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 1.5rem;
}

.card-content {
    padding: 0 2rem 2rem;
}

.card-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    text-align: justify;
}

.card-content p:last-child {
    margin-bottom: 0;
}

.card-content strong {
    color: var(--primary-red);
}

/* MVV (Missão, Visão, Valores) Styles */
.mvv-section {
    margin-bottom: 2rem;
}

.mvv-section:last-child {
    margin-bottom: 0;
}

.mvv-section h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-red);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-gray);
}

.mvv-text {
    font-style: italic;
    font-size: 1.05rem;
    color: var(--primary-blue);
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
    margin: 0 !important;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: 6px;
    transition: var(--transition);
}

.value-item:hover {
    background: rgba(124, 19, 22, 0.05);
    transform: translateX(4px);
}

.value-bullet {
    color: var(--primary-red);
    font-size: 1.2rem;
    font-weight: bold;
}

/* Team Styles */
.team-section {
    margin-bottom: 1.5rem;
}

.team-section:last-child {
    margin-bottom: 0;
}

.team-section h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-red);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-gray);
}

.team-member {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border-left: 4px solid var(--primary-blue);
}

.team-member:last-child {
    margin-bottom: 0;
}

.team-member strong {
    color: var(--primary-blue);
    font-size: 1.05rem;
}

/* Active navigation link */
.main-nav a.active {
    color: var(--primary-red);
    font-weight: 600;
}

.main-nav a.active::after {
    width: 100%;
}

/* Responsive adjustments for content pages */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .card-content {
        padding: 0 1.5rem 1.5rem;
    }

    .content-card .card-icon {
        margin: 1.5rem auto 1rem;
        width: 50px;
        height: 50px;
    }

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

@media (max-width: 480px) {
    .page-header {
        padding: 1rem 0;
        margin-bottom: 2rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .content-card h2 {
        font-size: 1.5rem;
    }

    .mvv-section h3,
    .team-section h3 {
        font-size: 1.1rem;
    }
}

/* Print styles */
@media print {

    .header,
    .footer,
    .btn {
        display: none;
    }

    .main-content {
        padding: 0;
    }

    .notice-card,
    .consultation-card,
    .content-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .page-header {
        margin-bottom: 1rem;
    }
}

/* =====================================================
   PAGES STYLES - Requerimentos and Contato
   ===================================================== */

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-header h1 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.page-header p {
    color: var(--color-text-light);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* =====================================================
   REQUERIMENTOS PAGE STYLES
   ===================================================== */

.requerimentos-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.requerimento-card {
    background: var(--color-card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
}

.requerimento-card .card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 12px;
    color: white;
    margin-bottom: 1.5rem;
}

.requerimento-card h2 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.requerimento-card p {
    color: var(--color-text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Requerimentos page styles */
.requerimentos-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.category-title {
    color: var(--primary-red);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.requerimento-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.requerimento-link:hover {
    border-color: var(--primary-red);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.requerimento-link .pdf-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.requerimento-link span {
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
}

/* Loading and error messages */
.loading-message {
    text-align: center;
    padding: 2rem;
    color: var(--text-gray);
    font-style: italic;
}

.error-message {
    text-align: center;
    padding: 2rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--border-radius);
    color: #dc2626;
}

.error-message p {
    margin: 0.5rem 0;
}

.error-message small {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Instructions Card */
.instructions-card {
    background: var(--color-card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
    height: fit-content;
}

.instructions-card .card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    border-radius: 12px;
    color: white;
    margin-bottom: 1.5rem;
}

.instructions-card h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.instructions-content {
    margin-bottom: 2rem;
}

.instruction-step {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.875rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content strong {
    display: block;
    color: var(--color-text);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.step-content p {
    color: var(--color-text-light);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.contact-info-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.contact-info-card h4 {
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

.contact-info-card p {
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

/* =====================================================
   CONTATO PAGE STYLES
   ===================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-form-card {
    background: var(--color-card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
}

.contact-form-card .card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 12px;
    color: white;
    margin-bottom: 1.5rem;
}

.contact-form-card h2 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(124, 19, 22, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.5;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-light);
}

/* Contact Info */
.contact-info-wrapper {
    display: grid;
    gap: 1.5rem;
}

.contact-details-card,
.lgpd-card {
    background: var(--color-card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
}

.contact-details-card .card-icon,
.lgpd-card .card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    border-radius: 12px;
    color: white;
    margin-bottom: 1.5rem;
}

.contact-details-card h3,
.lgpd-card h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 1rem;
}

.contact-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-bg);
    border-radius: 8px;
    color: var(--color-primary);
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-item-content strong {
    display: block;
    color: var(--color-text);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-item-content p {
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.5;
}

.map-link {
    margin-top: 1rem;
}

/* LGPD Card */
.lgpd-content {
    color: var(--color-text-light);
}

.lgpd-section {
    margin-bottom: 1.5rem;
}

.lgpd-section h4 {
    color: var(--color-text);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.lgpd-section p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.lgpd-section a {
    color: var(--color-primary);
    text-decoration: none;
}

.lgpd-section a:hover {
    text-decoration: underline;
}

.privacy-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.privacy-link:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.privacy-link svg {
    margin-right: 0.5rem;
}

/* Result Container */
.result-container {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid;
}

.result-container.success {
    background: transparent;
    border-color: #22c55e;
    color: inherit;
}

.result-container.error {
    background: transparent;
    border-color: #ef4444;
    color: inherit;
}

/* Responsive Design */
@media (max-width: 768px) {
    .requerimentos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .requerimento-card,
    .instructions-card,
    .contact-form-card,
    .contact-details-card,
    .lgpd-card {
        padding: 1.5rem;
    }

    .instruction-step {
        flex-direction: column;
        align-items: flex-start;
    }

    .step-number {
        margin-bottom: 0.75rem;
        margin-right: 0;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-item-icon {
        margin-bottom: 0.75rem;
        margin-right: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-items {
        grid-template-columns: 1fr;
    }
    
    .requerimento-link {
        padding: 0.75rem;
    }
    
    .requerimento-link span {
        font-size: 0.9rem;
    }
}

/* Privacy Policy Styles */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.privacy-section,
.terms-section {
    margin-bottom: 3rem;
}

.privacy-section h2,
.terms-section h2 {
    color: var(--primary-red);
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.privacy-section h3,
.terms-section h3 {
    color: var(--primary-blue);
    margin: 2rem 0 1rem 0;
    font-size: 1.3rem;
}

.privacy-section h4,
.terms-section h4 {
    color: var(--dark-gray);
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1.1rem;
}

.privacy-section h5,
.terms-section h5 {
    color: var(--primary-red);
    margin: 1rem 0 0.5rem 0;
    font-size: 1rem;
}

.privacy-section p,
.terms-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
    text-align: justify;
}

.privacy-section ul,
.terms-section ul,
.privacy-section ol,
.terms-section ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.privacy-section li,
.terms-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.notice-box {
    background: linear-gradient(135deg, #f8f1f1, #fbeaea);
    border-left: 4px solid var(--primary-red);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.notice-box p {
    margin-bottom: 1rem;
    font-weight: 500;
}

.notice-box p:last-child {
    margin-bottom: 0;
}

.definitions-grid,
.terms-definitions {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.definition-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.definition-item:hover {
    background: #f1f5f9;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.definition-item strong {
    color: var(--primary-blue);
    display: block;
    margin-bottom: 0.5rem;
}

.cookies-types {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.cookie-type {
    background: linear-gradient(135deg, #f0f7ff, #e6f3ff);
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.cookie-type:hover {
    background: linear-gradient(135deg, #e6f3ff, #cce7ff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cookie-type h5 {
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.rights-list {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.right-item {
    background: linear-gradient(135deg, #fff8e1, #fff3c4);
    border: 1px solid #ffd54f;
    border-left: 4px solid var(--primary-red);
    border-radius: 0 8px 8px 0;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.right-item:hover {
    background: linear-gradient(135deg, #fff3c4, #ffecb3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.right-item strong {
    color: var(--primary-red);
    display: block;
    margin-bottom: 0.5rem;
}

/* Mobile Responsiveness for Privacy Page */
@media (max-width: 768px) {
    .privacy-content {
        padding: 1rem 0;
    }

    .privacy-section h2,
    .terms-section h2 {
        font-size: 1.5rem;
    }

    .privacy-section h3,
    .terms-section h3 {
        font-size: 1.2rem;
    }

    .notice-box {
        padding: 1rem;
        margin: 1.5rem 0;
    }

    .definition-item,
    .cookie-type,
    .right-item {
        padding: 1rem;
    }

    .privacy-section ul,
    .terms-section ul,
    .privacy-section ol,
    .terms-section ol {
        padding-left: 1.5rem;
    }

    .user-obligations-list,
    .cartorio-responsibilities {
        padding: 1rem;
    }
}

/* Additional styles for new terms sections */
.user-obligations-list {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    border-left: 4px solid var(--primary-red);
}

.user-obligations-list p {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    text-indent: -1rem;
}

.cartorio-responsibilities {
    background: linear-gradient(135deg, #f0f7ff, #e6f3ff);
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    border-left: 4px solid var(--primary-blue);
}

.cartorio-responsibilities p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.cartorio-responsibilities p:last-child {
    margin-bottom: 0;
}

/* Download Link Styles */
.download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 2px solid var(--primary-blue);
}

.download-link:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.download-link svg {
    flex-shrink: 0;
}

.download-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(43, 76, 104, 0.3);
}

.download-link:active {
    transform: translateY(0);
}

/* Consulta Info Styles */
.consulta-info {
    text-align: right;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-gray);
}

.consulta-info small {
    color: var(--text-gray);
    font-size: 0.85rem;
    font-style: italic;
}

/* WhatsApp Link Styles */
.whatsapp-link {
    color: #25D366;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.whatsapp-link:hover {
    color: #128C7E;
    text-decoration: underline;
}

/* Custas table */
.custas-table th, .custas-table td {
    border: 1px solid var(--border-gray);
    padding: 0.5rem;
}
.custas-table th {
    background: var(--light-gray);
    text-align: left;
}
.custas-table tfoot th {
    background: #fafafa;
}
.custas-table .col-total {
    background: #fff3cd;
    font-weight: 700;
}
.emolumentos-total {
    margin-top: 0.75rem;
    text-align: right;
    font-weight: 700;
}
.emolumentos-total .label {
    margin-right: 0.5rem;
    color: var(--primary-blue);
}
.emolumentos-total .value {
    font-size: 1.1rem;
}

/* Cookie Popup Styles */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-blue);
    max-width: 350px;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.cookie-popup.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content {
    padding: 1.5rem;
}

.cookie-content h3 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
}

.cookie-content p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.cookie-content p a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
}

.cookie-content p a:hover {
    text-decoration: underline;
}

.btn-cookie {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn-cookie:hover {
    background-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile adjustments for cookie popup */
@media (max-width: 768px) {
    .cookie-popup {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* PDF Error Popup */
.pdf-error-popup {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.pdf-error-popup h4 {
    color: var(--primary-red);
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
}

.pdf-error-popup p {
    margin: 0.5rem 0;
    color: var(--text-dark);
}

.pdf-error-popup small {
    color: var(--text-gray);
    font-size: 0.875rem;
}

.pdf-error-popup ul {
    margin: 0.5rem 0 1rem 1.5rem;
    color: var(--text-dark);
}

.pdf-error-popup li {
    margin: 0.25rem 0;
}

.pdf-error-popup .btn {
    margin-top: 1rem;
    width: 100%;
}