/* HTL Online Platform — Minimal Responsive Styles */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Brand palette (default for intranet, forms, auth) */
:root {
    --brand: #1a56db;
    --brand-hover: #1544b5;
    --brand-dark: #0f3a8e;
}
/* Particulares landing pages */
body.page-particulares {
    --brand: #04407f;
    --brand-hover: #033366;
    --brand-dark: #02264c;
}
/* Empresas landing pages */
body.page-empresas {
    --brand: #3a8dd9;
    --brand-hover: #2e71ae;
    --brand-dark: #245989;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { list-style: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    border: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }

/* Top contact bar */
.topbar {
    background: var(--brand-dark);
    color: #fff;
    font-size: 0.85rem;
}
.topbar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem 1.5rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}
.topbar a.topbar-item {
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}
.topbar a.topbar-item:hover { text-decoration: underline; }

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
}
.logo img { height: 2.5em; width: auto; }
.logo:hover { text-decoration: none; }
.btn-login {
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--brand);
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--brand);
    white-space: nowrap;
}
.btn-login:hover { background: var(--brand); color: #fff; text-decoration: none; }
.lang-switcher { display: flex; gap: 0.5rem; }
.lang-switcher a {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
}
.lang-switcher a.active { background: var(--brand); color: #fff; }
.lang-switcher a:hover { text-decoration: none; background: #e5e7eb; }
.lang-switcher a.active:hover { background: var(--brand-hover); }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.9; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero .btn-primary { background: #fff; color: var(--brand); font-size: 1.1rem; padding: 0.85rem 2rem; }
.hero .btn-primary:hover { background: #f0f4ff; }

/* Hero proof bullets */
.hero-proof {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.hero-proof li {
    position: relative;
    padding-left: 1.4rem;
    font-size: 1rem;
    opacity: 0.95;
}
.hero-proof li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #86efac;
}

/* Hero CTAs */
.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Outline button */
.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1.5rem;
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}
.hero .btn-outline { font-size: 1.1rem; padding: 0.85rem 2rem; }

/* Hero crosslink */
.hero-crosslink {
    margin-top: 1.25rem;
    font-size: 0.95rem;
    opacity: 0.85;
}
.hero-crosslink a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.hero-crosslink a:hover {
    opacity: 1;
}

/* Main navigation */
.main-nav {
    display: flex;
    gap: 1rem;
}
.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    padding: 0.25rem 0.5rem;
}
.main-nav a:hover {
    color: var(--brand);
    text-decoration: none;
}
.main-nav a.active {
    color: var(--brand);
    border-bottom: 2px solid var(--brand);
}

/* Trust strip */
.trust-strip {
    background: var(--brand-dark);
    color: #fff;
    padding: 1rem 0;
}
.trust-items {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}
.trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    color: #86efac;
}

/* Company benefits grid */
.company-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.benefit-card {
    text-align: center;
    padding: 1.5rem;
}
.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.benefit-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.benefit-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* Agreement block — callout */
.agreement-callout {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    max-width: 700px;
    margin: 1.5rem auto 0;
    font-size: 0.95rem;
    color: var(--brand-dark);
    line-height: 1.5;
}
.agreement-callout-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    line-height: 1.3;
}

/* Learning experience block */
.learning-list {
    max-width: 700px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.learning-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.learning-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 0.15rem;
}
.learning-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}
.learning-item p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* Certificate block */
.certificate-block .certificate-content {
    max-width: 700px;
    margin: 2rem auto 0;
}
.certificate-block .certificate-text {
    margin-bottom: 1.5rem;
    text-align: center;
}
.certificate-block .certificate-text p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}
.certificate-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.certificate-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #333;
}
.certificate-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Sections */
.section { padding: 3rem 0; }
.section-alt { background: #f9fafb; }
.section h2 { font-size: 2rem; text-align: center; margin-bottom: 0.5rem; }
.section-subtitle { text-align: center; color: #666; margin-bottom: 2rem; }
.section-cta { text-align: center; margin-top: 2rem; }

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.steps-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
.step { text-align: center; }
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.95rem; color: #555; }
.process-note { margin-top: 1.5rem; padding: 1rem 1.25rem; background: #f0f4ff; border-left: 3px solid var(--brand); font-size: 0.9rem; color: #555; border-radius: 4px; }

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: start;
}
.pricing-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}
.pricing-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    position: relative;
}
.pricing-card-featured {
    border-color: var(--brand);
    box-shadow: 0 4px 24px rgba(26, 86, 219, 0.12);
}
.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.pricing-header { margin-bottom: 1.5rem; }
.pricing-header h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.price { font-size: 2.5rem; font-weight: 700; color: var(--brand); }
.price span { font-size: 1rem; font-weight: 400; color: #666; }
.pricing-features { margin-bottom: 1.5rem; text-align: left; }
.pricing-features li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}
.pricing-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: 700;
}

/* FAQ section */
.faq-section { padding: 3rem 0; }
.faq-section h2 { font-size: 2rem; text-align: center; margin-bottom: 0.5rem; }
.faq-list {
    max-width: 700px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.faq-item {
    border-bottom: 1px solid #e5e7eb;
}
.faq-item:first-child {
    border-top: 1px solid #e5e7eb;
}
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-size: 1.3rem;
    font-weight: 400;
    color: #6b7280;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.2s;
}
.faq-item[open] summary::after {
    content: "\2212";
}
.faq-item .faq-answer {
    padding: 0 0 1.1rem;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* Courses grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.course-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
}
.course-card h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.course-duration { font-size: 0.85rem; color: #888; }
.course-program-link { display: inline-block; margin-top: 0.6rem; font-size: 0.8rem; color: var(--brand); text-decoration: none; border: 1px solid var(--brand); border-radius: 4px; padding: 0.2rem 0.55rem; transition: background 0.15s, color 0.15s; }
.course-program-link:hover { background: var(--brand); color: #fff; }
.courses-category { margin-top: 2.5rem; }
.courses-category:first-child { margin-top: 0; }
.courses-category-heading { font-size: 1.1rem; font-weight: 700; color: var(--brand-dark); margin-bottom: 1rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--brand); }
.course-card h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.course-outline { list-style: disc; margin-top: 0.5rem; padding-left: 1.1rem; margin-bottom: 0; }
.course-outline li { font-size: 0.78rem; color: #4b5563; line-height: 1.5; }

/* Footer logos */
.footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.footer-logos img {
    height: 50px;
    width: auto;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
}

/* Footer */
.site-footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}
.footer-legal {
    font-size: 0.8rem;
    margin-top: 0.75rem;
}
.footer-disclaimer {
    font-size: 0.8rem;
    color: #64748b;
}

/* Intranet layout */
.intranet-wrapper { min-height: 60vh; }
.intranet-nav {
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.5rem 0;
}
.admin-nav { background: #1e293b; }
.admin-nav .intranet-menu a { color: #cbd5e1; }
.admin-nav .intranet-menu a:hover { color: #fff; background: #334155; }
.admin-nav .intranet-menu a.active { color: #fff; background: var(--brand); }
.intranet-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}
.intranet-menu a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    transition: background 0.15s;
}
.intranet-menu a:hover { background: #e2e8f0; text-decoration: none; }
.intranet-menu a.active { background: var(--brand); color: #fff; }
.intranet-content { padding: 2rem 0; }

/* Data tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.data-table th, .data-table td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}
.data-table th {
    font-weight: 600;
    color: #374151;
    background: #f9fafb;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.data-table tbody tr:hover { background: #f9fafb; }
.data-table .actions-cell { white-space: nowrap; }

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
}
.status-active, .status-signed, .status-completed { background: #dcfce7; color: #166534; }
.status-pending, .status-pending_payment, .status-draft, .status-pending_company, .status-pending_student { background: #fef9c3; color: #854d0e; }
.status-cancelled, .status-expired, .status-failed { background: #fef2f2; color: #991b1b; }
.status-past_due { background: #fff7ed; color: #9a3412; }
.status-superadmin { background: #ede9fe; color: #5b21b6; }
.status-manager { background: #e0f2fe; color: #075985; }

/* Detail table */
.detail-table {
    width: 100%;
    max-width: 600px;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}
.detail-table th, .detail-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
}
.detail-table th {
    width: 35%;
    font-weight: 500;
    color: #6b7280;
    text-align: left;
}

/* Detail grid */
.detail-grid { margin-bottom: 2rem; }
.detail-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.detail-card h2 { font-size: 1.15rem; margin-bottom: 1rem; }

/* Stats grid (admin dashboard) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}
.stat-number { font-size: 2rem; font-weight: 700; color: var(--brand); }
.stat-label { font-size: 0.9rem; color: #6b7280; margin-top: 0.25rem; }
.stat-link { display: inline-block; margin-top: 0.5rem; font-size: 0.85rem; }

/* Filters */
.filters-form { margin-bottom: 1.5rem; }
.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}
.filter-group { min-width: 150px; }
.filter-group label { display: block; font-size: 0.8rem; font-weight: 500; color: #6b7280; margin-bottom: 0.25rem; }
.filter-group input, .filter-group select {
    padding: 0.4rem 0.6rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.9rem;
    width: 100%;
}
.filter-actions { display: flex; gap: 0.5rem; align-items: flex-end; }

/* Progress bar */
.progress-bar-wrapper { display: flex; align-items: center; gap: 0.5rem; }
.progress-bar { flex: 1; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--brand); border-radius: 4px; }
.progress-text { font-size: 0.8rem; color: #6b7280; white-space: nowrap; }

/* Pagination */
.pagination { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.pagination-info { font-size: 0.9rem; color: #6b7280; }

/* Empty state */
.empty-state { color: #9ca3af; padding: 2rem 0; }

/* Buttons */
.btn-small { padding: 0.35rem 0.75rem; font-size: 0.8rem; border-radius: 4px; }
.btn-secondary { background: #f3f4f6; color: #374151; border: 1px solid #d1d5db; }
.btn-secondary:hover { background: #e5e7eb; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-large { padding: 0.85rem 2rem; font-size: 1.1rem; }

/* Admin actions panel */
.admin-actions-panel {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}
.admin-actions-panel h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.admin-actions-panel h3 { font-size: 1rem; margin-bottom: 0.5rem; color: #374151; }
.action-row { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #e5e7eb; }
.action-row:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

/* Settings */
.settings-section { margin-bottom: 2rem; }
.settings-section h2 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.settings-note { color: #6b7280; font-size: 0.9rem; margin-top: 2rem; }
.settings-note code { background: #f3f4f6; padding: 0.15rem 0.4rem; border-radius: 3px; font-size: 0.85rem; }

/* Alerts */
.alert { padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1.5rem; font-size: 0.9rem; }
.alert-success { background: #dcfce7; border: 1px solid #bbf7d0; color: #166534; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* Field-level errors */
.field-error { display: block; font-size: 0.8rem; color: #dc2626; margin-top: 0.25rem; }

/* Checkbox label */
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: auto; }

/* Cookie consent banner */
.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    max-width: 340px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    padding: 1.25rem 1.5rem;
    z-index: 9999;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #333;
    border-top: 3px solid var(--brand);
}
.cookie-banner p { margin-bottom: 0.75rem; }
.cookie-banner-title { font-weight: 700; font-size: 0.95rem; display: block; margin-bottom: 0.5rem; }
.cookie-banner-actions { display: flex; gap: 0.75rem; margin-top: 1rem; }
.cookie-accept {
    flex: 1;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}
.cookie-accept:hover { background: var(--brand-hover); }
.cookie-decline {
    flex: 1;
    background: transparent;
    color: #555;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
}
.cookie-decline:hover { background: #f3f4f6; }
.cookie-banner-link { font-size: 0.8rem; margin-top: -0.25rem; margin-bottom: 0.5rem; }
.cookie-banner-link a { color: var(--brand); text-decoration: underline; }

/* Footer legal links + Manage cookies button (looks like a link, behaves like a button) */
.footer-legal-links { margin-top: 0.5rem; font-size: 0.85rem; }
.footer-legal-links a, .cookie-manage-button {
    color: inherit;
    text-decoration: underline;
}
.cookie-manage-button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}
.cookie-manage-button:hover { color: var(--brand); }

/* Legal pages (privacy, cookies) */
.legal-page { max-width: 800px; padding: 2rem 1.25rem 4rem; }
.legal-page h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.legal-page h2 { font-size: 1.25rem; margin-top: 2rem; margin-bottom: 0.75rem; color: var(--brand); }
.legal-page h3 { font-size: 1.05rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.legal-page p, .legal-page li { line-height: 1.65; }
.legal-page ul { margin-left: 1.5rem; margin-bottom: 1rem; }
.legal-meta { color: #666; font-size: 0.875rem; margin-bottom: 2rem; }
.legal-related { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid #e5e7eb; font-size: 0.95rem; }
.legal-cta { margin-top: 2rem; }
.legal-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.875rem; }
.legal-table th, .legal-table td { border: 1px solid #e5e7eb; padding: 0.5rem 0.75rem; text-align: left; vertical-align: top; }
.legal-table th { background: #f9fafb; font-weight: 600; }
.legal-table code { font-size: 0.85em; background: #f3f4f6; padding: 0.1em 0.3em; border-radius: 3px; }

/* Responsive */
@media (max-width: 1024px) {
    .pricing-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 1.75rem; }
    .hero p { font-size: 1rem; }
    .hero-proof { flex-direction: column; align-items: center; gap: 0.5rem; }
    .hero-ctas { flex-direction: column; align-items: center; }
    .hero-ctas .btn { width: 100%; max-width: 320px; }
    .trust-items { flex-direction: column; align-items: center; gap: 0.75rem; }
    .trust-strip { padding: 1.25rem 0; }
    .agreement-callout { padding: 1rem; font-size: 0.9rem; }
    .company-benefits { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
    .courses-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
    .section h2 { font-size: 1.5rem; }
    .section-subtitle { font-size: 0.95rem; }
    .faq-item summary { padding: 1rem 0; min-height: 44px; }
    .learning-list { gap: 1.25rem; }
    .data-table { font-size: 0.8rem; }
    .data-table th, .data-table td { padding: 0.4rem 0.5rem; }
    .filters-row { flex-direction: column; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { display: block; }
    .form-row .form-group { margin-bottom: 1rem; }
    .header-inner { flex-wrap: wrap; gap: 0.25rem 0.5rem; }
    .logo { font-size: 1rem; }
    .main-nav { order: 4; width: 100%; justify-content: center; margin-top: 0.25rem; padding-top: 0.5rem; border-top: 1px solid #e5e7eb; }
    .main-nav a { font-size: 0.9rem; padding: 0.25rem 0.5rem; }
    .btn-login { order: 2; font-size: 0.8rem; padding: 0.2rem 0.4rem; margin-left: auto; }
    .lang-switcher { order: 3; }
    .lang-switcher a { font-size: 0.8rem; padding: 0.2rem 0.35rem; }
    .hero-crosslink { font-size: 0.85rem; }
    .topbar .container { justify-content: center; gap: 0.3rem 1rem; font-size: 0.78rem; }
}

@media (max-width: 480px) {
    .cookie-banner { left: 0.5rem; right: 0.5rem; max-width: none; bottom: 0.5rem; }
    .steps-grid { grid-template-columns: 1fr; }
    .hero { padding: 2.5rem 0; }
    .hero h1 { font-size: 1.5rem; }
    .section h2, .faq-section h2 { font-size: 1.35rem; }
    .section { padding: 2rem 0; }
    .faq-section { padding: 2rem 0; }
    .learning-item { gap: 0.75rem; }
    .learning-icon { font-size: 1.5rem; }
    .certificate-feature { font-size: 0.9rem; }
}

/* ── Contact form ─────────────────────────────────────────────────────── */
.contact-section { background: var(--section-alt-bg, #f8f9fa); }
.contact-form { max-width: 680px; margin: 2rem auto 0; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-field { display: flex; flex-direction: column; margin-bottom: 1rem; }
.contact-field label { font-size: 0.875rem; font-weight: 600; color: var(--brand-dark); margin-bottom: 0.35rem; }
.contact-field input,
.contact-field textarea { border: 1px solid #d1d5db; border-radius: 6px; padding: 0.55rem 0.75rem; font-size: 0.95rem; font-family: inherit; color: #111; background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
.contact-field input:focus,
.contact-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(30,58,95,0.1); }
.contact-field textarea { resize: vertical; min-height: 120px; }
.contact-submit { margin-top: 0.5rem; }
.contact-alert { max-width: 680px; margin: 0 auto 1.5rem; padding: 0.75rem 1rem; border-radius: 6px; font-size: 0.95rem; font-weight: 500; }
.contact-alert-ok    { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.contact-alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
@media (max-width: 600px) {
    .contact-row { grid-template-columns: 1fr; }
}
