:root {
    --purple-900: #2f145f;
    --purple-800: #43207a;
    --purple-700: #5a2ca0;
    --purple-100: #f0e9fb;
    --ink: #20172f;
    --muted: #6f667d;
    --line: #e7e1ee;
    --surface: #ffffff;
    --soft: #fbf9fe;
    --mint: #29b8a9;
    --gold: #f5b84b;
    --shadow: 0 24px 70px rgba(47, 20, 95, .14);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 8%, rgba(90, 44, 160, .2), transparent 30rem),
        radial-gradient(circle at 92% 18%, rgba(41, 184, 169, .08), transparent 26rem),
        linear-gradient(180deg, #f5f0fb 0%, #eee7f8 46%, #fbf8ff 100%);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: var(--purple-700);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

a:hover {
    color: var(--purple-900);
}

.site-header {
    background: rgba(255, 255, 255, .86);
    border-bottom: 1px solid rgba(90, 44, 160, .1);
    z-index: 20;
    backdrop-filter: blur(18px);
}

.header-shell {
    align-items: center;
    display: flex;
    justify-content: flex-start;
    margin: 0 auto;
    max-width: 1180px;
    padding: 18px 24px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
}

.brand-link img {
    display: block;
    width: 178px;
    height: auto;
}

.secondary-link,
.language-switch label,
.document-sidebar a {
    border: 1px solid rgba(90, 44, 160, .2);
    border-radius: 999px;
    color: var(--purple-800);
    cursor: pointer;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 11px 16px;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.secondary-link:hover,
.language-switch label:hover,
.document-sidebar a:hover {
    background: var(--purple-100);
    border-color: rgba(90, 44, 160, .36);
    color: var(--purple-900);
    transform: translateY(-1px);
}

.home-hero,
.legal-hero,
.documents-section,
.acceptance-section,
.success-section,
.document-layout {
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.home-hero,
.legal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr);
    gap: 28px;
    align-items: stretch;
    padding-top: 70px;
    padding-bottom: 72px;
}

.home-hero {
    display: block;
    padding-top: 58px;
    padding-bottom: 58px;
}

.home-copy,
.legal-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-copy {
    background:
        radial-gradient(circle at 92% 12%, rgba(255, 255, 255, .14), transparent 20rem),
        linear-gradient(135deg, rgba(67, 32, 122, .98), rgba(90, 44, 160, .92));
    border: 1px solid rgba(90, 44, 160, .12);
    border-radius: var(--radius);
    box-shadow: 0 22px 58px rgba(47, 20, 95, .2);
    min-height: 315px;
    padding: clamp(34px, 5vw, 58px);
}

.eyebrow,
.language-label,
.document-sidebar p {
    color: var(--purple-700);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.home-copy .eyebrow {
    color: rgba(255, 255, 255, .72);
}

h1,
h2,
h3 {
    color: var(--purple-900);
    line-height: 1.12;
    margin: 0;
}

h1 {
    font-size: clamp(2.35rem, 5vw, 4.6rem);
    max-width: 880px;
}

.home-copy h1 {
    color: #ffffff;
    font-size: clamp(2rem, 4.2vw, 3.55rem);
    max-width: 900px;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
}

h3 {
    font-size: 1.2rem;
}

.hero-lead,
.legal-hero-copy > p:not(.eyebrow),
.section-heading p,
.acceptance-copy > p,
.success-panel > p {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 700px;
}

.home-copy .hero-lead {
    color: rgba(255, 255, 255, .78);
    margin: 20px 0 0;
    max-width: 760px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.primary-link,
.acceptance-form button {
    align-items: center;
    background: linear-gradient(135deg, var(--purple-800), var(--purple-700));
    border: 0;
    border-radius: 999px;
    box-shadow: 0 16px 34px rgba(67, 32, 122, .24);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: .95rem;
    font-weight: 800;
    justify-content: center;
    line-height: 1.2;
    min-height: 48px;
    padding: 14px 22px;
    text-decoration: none;
    transition: box-shadow .2s ease, transform .2s ease;
}

.primary-link:hover,
.acceptance-form button:hover {
    box-shadow: 0 20px 42px rgba(67, 32, 122, .3);
    color: #ffffff;
    transform: translateY(-1px);
}

.acceptance-form,
.success-panel {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(90, 44, 160, .14);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.documents-section,
.acceptance-section,
.document-layout {
    padding-bottom: 86px;
}

.documents-section,
.acceptance-section,
.legal-language {
    scroll-margin-top: 92px;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 28px;
}

.document-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.document-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    min-height: 230px;
    padding: 24px;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.document-card:hover {
    border-color: rgba(90, 44, 160, .35);
    box-shadow: 0 18px 48px rgba(47, 20, 95, .12);
    color: var(--ink);
    transform: translateY(-3px);
}

.document-card span {
    color: var(--mint);
    display: block;
    font-weight: 900;
    margin-bottom: 34px;
}

.document-card h3 {
    margin-bottom: 12px;
}

.document-card p,
.acceptance-form p,
.privacy-note p,
.form-disclaimer {
    color: var(--muted);
}

/* ==========================================================================
   Hero Unificado y Autoritativo de Contratación y Normativas
   ========================================================================== */
.legal-portal-hero {
    background: linear-gradient(145deg, #ffffff 0%, #fbf9fe 60%, #f4edfc 100%);
    border: 1.5px solid rgba(90, 44, 160, .18);
    border-radius: calc(var(--radius) * 1.25);
    box-shadow: 0 16px 40px rgba(47, 20, 95, .06);
    margin-top: 24px;
    padding: clamp(18px, 2.5vw, 24px) clamp(20px, 3vw, 36px);
    position: relative;
    text-align: center;
}

.legal-hero-eyebrow {
    align-items: center;
    color: var(--purple-800);
    display: inline-flex;
    font-size: .78rem;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pulse-indicator {
    background-color: var(--mint);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(41, 184, 169, .7);
    display: inline-block;
    height: 9px;
    width: 9px;
    animation: legalPulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes legalPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(41, 184, 169, .6);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(41, 184, 169, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(41, 184, 169, 0);
    }
}

.legal-hero-title {
    color: var(--purple-900);
    font-size: clamp(1.1rem, 2.1vw, 1.6rem);
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1.25;
    margin: 8px auto;
    max-width: 100%;
    text-align: center;
}

.legal-hero-description {
    color: #4a3e5c;
    font-size: .98rem;
    line-height: 1.55;
    margin: 0 auto;
    max-width: 860px;
}

/* Lista de Documentos Legales Incorporados */
.embedded-legal-documents {
    margin-top: 24px;
}

.legal-document-list {
    display: grid;
    gap: 18px;
}

.embedded-legal-documents .embedded-legal-document {
    background: transparent;
    border: 0;
    border-radius: var(--radius);
    padding: 0;
    scroll-margin-top: 92px;
}

.embedded-legal-documents .embedded-legal-document details {
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(47, 20, 95, .04);
    margin: 0;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.embedded-legal-documents .embedded-legal-document details:hover {
    border-color: rgba(90, 44, 160, .32);
    box-shadow: 0 10px 28px rgba(47, 20, 95, .07);
}

.embedded-legal-documents .embedded-legal-document details[open] {
    border-color: rgba(90, 44, 160, .42);
    box-shadow: 0 14px 36px rgba(47, 20, 95, .1);
}

.embedded-legal-documents .embedded-legal-document summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    list-style: none;
    min-height: 76px;
    padding: 16px 24px;
    position: relative;
    transition: background .2s ease, color .2s ease;
}

.embedded-legal-documents .embedded-legal-document summary::-webkit-details-marker {
    display: none;
}

.embedded-legal-documents .embedded-legal-document summary:hover,
.embedded-legal-documents .embedded-legal-document summary:focus-visible {
    background: rgba(240, 233, 251, .45);
    outline: none;
}

.embedded-legal-documents .embedded-legal-document summary:focus-visible {
    box-shadow: inset 0 0 0 3px rgba(90, 44, 160, .24);
}

.embedded-legal-documents .embedded-legal-document details[open] summary {
    background: rgba(240, 233, 251, .6);
    border-bottom: 1px solid rgba(90, 44, 160, .14);
}

.summary-doc-meta {
    align-items: center;
    display: flex;
    gap: 18px;
    min-width: 0;
}

.doc-badge-num,
.doc-badge-icon {
    align-items: center;
    background: rgba(41, 184, 169, .14);
    border: 1px solid rgba(41, 184, 169, .3);
    border-radius: 50%;
    color: #177a70;
    display: inline-flex;
    flex-shrink: 0;
    font-size: .95rem;
    font-weight: 900;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.doc-badge-icon svg {
    display: block;
    height: 18px;
    width: 18px;
}

.doc-titles-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.legal-document-title {
    color: var(--purple-900);
    font-family: inherit;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 800;
    line-height: 1.24;
}

.legal-document-tagline {
    color: #55486a;
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.4;
}

.summary-doc-action {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    gap: 14px;
}

.legal-status-pill {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    color: #15803d;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1;
    padding: 5px 11px;
    text-transform: uppercase;
}

.legal-document-toggle {
    align-items: center;
    border: 1px solid rgba(90, 44, 160, .2);
    border-radius: 50%;
    color: var(--purple-800);
    display: inline-flex;
    flex: 0 0 auto;
    height: 34px;
    justify-content: center;
    position: relative;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
    width: 34px;
}

.legal-document-toggle::before,
.legal-document-toggle::after {
    background: currentColor;
    border-radius: 2px;
    content: "";
    height: 2px;
    position: absolute;
    transition: transform .2s ease;
    width: 12px;
}

.legal-document-toggle::after {
    transform: rotate(90deg);
}

.embedded-legal-documents details[open] .legal-document-toggle {
    background: var(--purple-800);
    border-color: var(--purple-800);
    color: #fff;
}

.embedded-legal-documents details[open] .legal-document-toggle::after {
    transform: rotate(0deg);
}

.embedded-legal-documents .embedded-legal-document .canonical-text {
    background: #fff;
    border-top: 1px solid rgba(90, 44, 160, .16);
    line-height: 1.72;
    max-height: none;
    overflow: visible;
    padding: 0;
}

.legal-language-selector {
    border: 0;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.visually-hidden,
.legal-language-choice {
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.legal-language-tabs {
    background: var(--soft);
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 8px;
    padding: 14px 20px;
}

.legal-language-tab {
    border: 1px solid rgba(90, 44, 160, .2);
    border-radius: 999px;
    color: var(--purple-800);
    cursor: pointer;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.2;
    min-width: 92px;
    padding: 9px 16px;
    text-align: center;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.legal-language-tab:hover {
    border-color: rgba(90, 44, 160, .42);
}

.legal-language-choice-es:checked ~ .legal-language-tabs .legal-language-tab-es,
.legal-language-choice-en:checked ~ .legal-language-tabs .legal-language-tab-en {
    background: var(--purple-800);
    border-color: var(--purple-800);
    color: #fff;
}

.legal-language-choice-es:focus-visible ~ .legal-language-tabs .legal-language-tab-es,
.legal-language-choice-en:focus-visible ~ .legal-language-tabs .legal-language-tab-en {
    outline: 3px solid rgba(90, 44, 160, .25);
    outline-offset: 2px;
}

.legal-document-scroll {
    max-height: min(60vh, 34rem);
    outline: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(22px, 4vw, 36px);
    scrollbar-gutter: stable;
}

.legal-document-scroll:focus-visible {
    box-shadow: inset 0 0 0 3px rgba(90, 44, 160, .18);
}

.legal-document-translation {
    border-left: 2px solid rgba(41, 184, 169, .5);
    display: none;
    margin: 0 auto;
    max-width: 88ch;
    padding-left: clamp(16px, 3vw, 28px);
}

.legal-language-choice-es:checked ~ .legal-document-scroll .legal-document-translation[lang="es"],
.legal-language-choice-en:checked ~ .legal-document-scroll .legal-document-translation[lang="en"] {
    display: block;
}

.legal-document-content p {
    color: #342a43;
    font-size: .96rem;
    margin: 0 0 1.05rem;
}

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

@media (prefers-reduced-motion: reduce) {
    .embedded-legal-documents .embedded-legal-document details,
    .embedded-legal-documents .embedded-legal-document summary,
    .legal-document-toggle,
    .legal-document-toggle::after,
    .legal-language-tab {
        transition: none;
    }
}

.section-divider {
    border: 0;
    border-top: 1px solid rgba(90, 44, 160, .14);
    margin: 32px auto 28px;
    max-width: 980px;
    width: 100%;
}

.acceptance-section {
    display: block;
    max-width: 980px;
    margin: 0 auto;
    padding-top: 0;
}

.acceptance-section .form-section-heading {
    margin: 0 auto 24px;
    max-width: 820px;
    text-align: center;
}

.acceptance-section .form-section-heading .eyebrow {
    color: var(--purple-800);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.acceptance-section .form-section-heading h2 {
    color: var(--purple-900);
    font-size: clamp(1.4rem, 2.8vw, 2.1rem);
    font-weight: 900;
    letter-spacing: -.02em;
    margin: 8px 0 10px;
}

.acceptance-section .form-section-heading p:not(.eyebrow),
.acceptance-lead-intro {
    color: var(--purple-900, #2a1154);
    font-size: clamp(1.08rem, 2.2vw, 1.25rem);
    font-weight: 600;
    line-height: 1.65;
    margin: 16px auto 28px;
    max-width: 820px;
    text-align: center;
}

.contract-reading-section {
    margin-top: 36px;
    width: 100%;
}

.contract-reader-card {
    background: #ffffff;
    border: 1.5px solid var(--line, rgba(90, 44, 160, .14));
    border-radius: var(--radius, 20px);
    box-shadow: 0 6px 20px rgba(47, 20, 95, .04);
    overflow: hidden;
    width: 100%;
}

.contract-language-selector {
    border: none;
    display: block;
    margin: 0;
    padding: 0;
}

.contract-language-tabs {
    background: transparent;
    border-bottom: none;
    padding: 0;
}

.contract-text-es,
.contract-text-en,
.contract-translation {
    display: none;
}

.legal-language-choice-es:checked ~ .contract-reader-header .contract-text-es,
.legal-language-choice-en:checked ~ .contract-reader-header .contract-text-en {
    display: block;
}

.legal-language-choice-es:checked ~ .contract-reader-header .legal-language-tab-es,
.legal-language-choice-en:checked ~ .contract-reader-header .legal-language-tab-en {
    background: var(--purple-800);
    border-color: var(--purple-800);
    color: #fff;
}

.legal-language-choice-es:focus-visible ~ .contract-reader-header .legal-language-tab-es,
.legal-language-choice-en:focus-visible ~ .contract-reader-header .legal-language-tab-en {
    outline: 3px solid rgba(90, 44, 160, .25);
    outline-offset: 2px;
}

.legal-language-choice-es:checked ~ .contract-reader-body .contract-translation-es,
.legal-language-choice-en:checked ~ .contract-reader-body .contract-translation-en {
    display: block;
}

.contract-reader-header {
    background: linear-gradient(180deg, #ffffff 0%, #fbf9fe 100%);
    border-bottom: 1px solid var(--line, rgba(90, 44, 160, .14));
    padding: 24px 28px;
}

.contract-reader-top-bar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
}

.contract-title-group {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contract-reader-title {
    color: var(--purple-900, #2a1154);
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    font-weight: 800;
    margin: 0;
}

.contract-reader-lead {
    color: #55486a;
    font-size: .95rem;
    line-height: 1.5;
    margin: 12px 0 0;
}

.contract-translation-notice {
    background: rgba(90, 44, 160, 0.05);
    border: 1px dashed rgba(90, 44, 160, 0.25);
    border-radius: 10px;
    color: #4b3d5c;
    font-size: .86rem;
    line-height: 1.55;
    margin: 14px 0 0;
    padding: 12px 14px;
}

.contract-reader-body {
    background: #ffffff;
    border-top: 1px solid var(--line, rgba(90, 44, 160, .14));
    box-sizing: border-box;
    display: block !important;
    max-height: 480px !important;
    min-height: 200px;
    outline: none;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    padding: 28px;
    position: relative;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Agreement Products Table */
.agreement-table-wrap {
    background: #faf8fd;
    border: 1px solid rgba(90, 44, 160, 0.16);
    border-radius: 12px;
    margin: 20px 0;
    max-width: 100%;
    overflow-x: auto;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
}

.agreement-products {
    border-collapse: collapse;
    font-size: .88rem;
    min-width: 480px;
    width: 100%;
}

.agreement-products th {
    background: rgba(90, 44, 160, 0.08);
    color: var(--purple-900, #2a1154);
    font-weight: 800;
    padding: 10px 14px;
    text-align: left;
}

.agreement-products td {
    border-top: 1px solid rgba(90, 44, 160, 0.1);
    color: #3b2e53;
    padding: 10px 14px;
}

.contract-check-box {
    align-items: center;
    background: var(--purple-800, #43207a);
    border-radius: 4px;
    color: #fff;
    display: inline-flex;
    height: 18px;
    justify-content: center;
    width: 18px;
}

.unified-normativas-form {
    display: grid;
    gap: 30px;
    width: 100%;
}

.form-step-card {
    background: #ffffff;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(47, 20, 95, .04);
    display: block;
    margin: 0;
    padding: clamp(22px, 4vw, 34px);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-step-card:hover {
    border-color: rgba(90, 44, 160, .28);
    box-shadow: 0 10px 28px rgba(47, 20, 95, .07);
}

.step-card-header {
    align-items: center;
    border-bottom: 1px solid rgba(90, 44, 160, .1);
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    width: 100%;
}

.step-badge {
    background: rgba(41, 184, 169, .14);
    border: 1px solid rgba(41, 184, 169, .3);
    border-radius: 999px;
    color: #177a70;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .06em;
    padding: 4px 12px;
    text-transform: uppercase;
}

.step-card-title,
.step-card-header h3 {
    color: var(--purple-900);
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    font-weight: 800;
    margin: 0;
}

.personal-data-grid {
    display: grid;
    gap: 20px 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.personal-data-grid .full-width-field {
    grid-column: 1 / -1;
}

.parent-fields-grid {
    display: grid;
    gap: 20px 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-group label {
    color: var(--purple-900);
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: .01em;
}

.field-group input[type="text"],
.field-group input[type="email"],
.field-group input[type="date"],
.field-group input[type="tel"],
.field-group select {
    background: #fbf9fe;
    border: 1.5px solid #e0d7ec;
    border-radius: var(--radius);
    color: var(--ink);
    font: inherit;
    min-height: 52px;
    outline: none;
    padding: 12px 16px;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
    width: 100%;
}

.field-group input:hover,
.field-group select:hover {
    background: #ffffff;
    border-color: rgba(90, 44, 160, .38);
}

.field-group input:focus,
.field-group select:focus {
    background: #ffffff;
    border-color: var(--purple-700);
    box-shadow: 0 0 0 4px rgba(90, 44, 160, .14);
}

.form-alert {
    background: #fff4f4;
    border: 1px solid #f1b9b9;
    border-radius: var(--radius);
    color: #8b2424;
    font-size: .95rem;
    font-weight: 700;
    padding: 14px 18px;
}

.field-error {
    color: #9b2323;
    font-size: .88rem;
    font-weight: 700;
    margin: -2px 0 6px;
}

.checklist-intro {
    color: var(--muted);
    font-size: .98rem;
    line-height: 1.5;
    margin-bottom: 6px;
}

.compliance-checklist-group {
    display: grid;
    gap: 6px;
}

.checklist-item:not(.master-checklist-item) {
    align-items: flex-start;
    background: #fdfcfe;
    border: 1px solid rgba(90, 44, 160, .14);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 8px 12px;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.checklist-item:not(.master-checklist-item):hover {
    background: #f6f0fc;
    border-color: rgba(90, 44, 160, .3);
    box-shadow: 0 2px 8px rgba(47, 20, 95, .04);
}

.checklist-item:not(.master-checklist-item) input[type="checkbox"] {
    accent-color: var(--purple-700);
    cursor: pointer;
    flex-shrink: 0;
    height: 16px;
    margin-top: 2px;
    width: 16px;
}

.checklist-item:not(.master-checklist-item) span {
    color: #4b3d5c;
    flex: 1;
    font-size: .82rem;
    line-height: 1.35;
    min-width: 0;
}

.checklist-item:not(.master-checklist-item) span strong {
    color: var(--purple-900);
}

.signature-record-container {
    background: linear-gradient(180deg, #fbf9fe 0%, #f6f0fd 100%);
    border: 1.5px solid rgba(90, 44, 160, .2);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(47, 20, 95, .04);
    margin: 8px 0 16px;
    padding: 18px 22px;
}

.signature-record-container .signature-record {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.master-checklist-card {
    background: linear-gradient(135deg, #fcf9ff 0%, #f3ebfc 100%);
    border: 2px solid var(--purple-700);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(47, 20, 95, .1);
    margin-top: 14px;
    padding: 22px 26px;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.master-checklist-card:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f0e4fc 100%);
    border-color: var(--purple-800);
    box-shadow: 0 14px 36px rgba(47, 20, 95, .14);
    transform: translateY(-1px);
}

.master-checklist-item {
    align-items: flex-start;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    gap: 14px;
    padding: 0;
}

.master-checklist-item:hover {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.master-checklist-item input[type="checkbox"] {
    accent-color: var(--purple-700);
    cursor: pointer;
    flex-shrink: 0;
    height: 24px;
    margin-top: 2px;
    width: 24px;
}

.master-checklist-item span {
    flex: 1;
    min-width: 0;
}

.master-checklist-item span strong {
    color: var(--purple-900);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.3;
}

.master-checklist-help {
    color: #4a3e5c;
    font-size: .92rem;
    line-height: 1.55;
    margin: 10px 0 0 38px;
}

.master-checklist-help em {
    color: #64557c;
    font-style: italic;
}

.optional-marketing-item {
    background: #ffffff;
    border-color: var(--line);
    border-style: solid;
}

.compliance-checklist-group:has(#accept_all_conditions:checked) .checklist-item:not(.master-checklist-item) {
    background: rgba(90, 44, 160, .05);
    border-color: rgba(90, 44, 160, .45);
}

.optional-check input[type="checkbox"] {
    accent-color: var(--purple-700);
    cursor: pointer;
    height: 18px;
    margin-top: 3px;
    width: 18px;
}

.optional-check span {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.5;
}

.review-signature-wrap {
    margin-top: 8px;
}

.parent-lead-note {
    background: rgba(240, 233, 251, .5);
    border: 1px solid rgba(90, 44, 160, .14);
    border-radius: var(--radius);
    color: #55486a;
    font-size: .92rem;
    line-height: 1.55;
    margin-bottom: 20px;
    padding: 12px 16px;
}

.reset-flow-action {
    margin-top: 14px;
}

.reset-flow-link {
    display: inline-block;
    font-size: .88rem;
}

.submit-action-bar {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    padding-bottom: 28px;
}

.complete-button {
    align-items: center;
    background: linear-gradient(135deg, var(--purple-800), var(--purple-700));
    border: 0;
    border-radius: 999px;
    box-shadow: 0 16px 34px rgba(67, 32, 122, .24);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.08rem;
    font-weight: 800;
    justify-content: center;
    line-height: 1.2;
    min-height: 58px;
    padding: 16px 40px;
    text-decoration: none;
    transition: box-shadow .2s ease, transform .2s ease;
    width: 100%;
    max-width: 580px;
}

.complete-button:hover:not([disabled]) {
    box-shadow: 0 20px 42px rgba(67, 32, 122, .32);
    color: #ffffff;
    transform: translateY(-2px);
}

.complete-button[disabled] {
    cursor: not-allowed;
    opacity: .55;
    box-shadow: none;
}

.legal-flow-heading,
.legal-acceptance-form {
    margin: 0 auto;
    max-width: 980px;
    padding-left: 24px;
    padding-right: 24px;
}

.legal-flow-heading {
    padding-bottom: 34px;
    padding-top: 58px;
}

.contract-language-tabs {
    background: transparent;
    border: 0;
    margin-bottom: 24px;
    padding: 0;
}

.contract-language-tabs .legal-language-tab {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    text-decoration: none;
}

.contract-language-tabs .legal-language-tab.is-active {
    background: var(--purple-800);
    border-color: var(--purple-800);
    color: #fff;
}

.contract-translation-notice {
    background: rgba(240, 233, 251, .45);
    border: 1px solid rgba(90, 44, 160, .14);
    border-radius: var(--radius);
    box-sizing: border-box;
    color: #4a3e5c !important;
    font-size: .92rem;
    line-height: 1.55;
    margin: 16px 0 0;
    max-width: 100%;
    padding: 14px 18px;
    width: 100%;
}

.legal-flow-heading > p:not(.eyebrow) {
    color: var(--muted);
}

.client-summary,
.contract-summary,
.signature-record {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 5px;
    margin-top: 22px;
    padding: 18px;
}

.agreement-document h3 {
    color: var(--color-primary, #43207a);
    margin: 1.5rem 0 .55rem;
}

.agreement-table-wrap {
    margin: 1.25rem 0;
    overflow-x: auto;
}

.agreement-products {
    border-collapse: collapse;
    min-width: 900px;
    width: 100%;
}

.agreement-products th,
.agreement-products td {
    border: 1px solid #d9d0e5;
    padding: .7rem;
    text-align: left;
    vertical-align: top;
}

.agreement-products th {
    background: #f3eef9;
    color: #43207a;
}

.agreement-products th:first-child,
.agreement-products td:first-child {
    text-align: center;
    width: 4rem;
}

.contract-check-box {
    align-items: center;
    background: #fff;
    border: 1px solid #1e1b22;
    border-radius: 0;
    box-sizing: border-box;
    color: #17131d;
    display: inline-flex;
    height: 23px;
    justify-content: center;
    line-height: 1;
    width: 23px;
}

.contract-check-mark {
    color: #17131d;
    font-family: Arial, "DejaVu Sans", sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-1px);
}

.legal-blocker {
    background: #fff8e8;
    border: 1px solid #e8c979;
    border-radius: var(--radius);
    color: #664b0c;
    margin-top: 22px;
    padding: 16px 18px;
}

.legal-blocker p {
    margin: 6px 0 0;
}

.legal-acceptance-form {
    display: grid;
    gap: 22px;
    padding-bottom: 86px;
}

.legal-review-card,
.decision-card {
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 14px 42px rgba(47, 20, 95, .08);
    padding: clamp(22px, 4vw, 34px);
}

.legal-review-title {
    align-items: start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.legal-review-title > span {
    color: var(--muted);
    white-space: nowrap;
}

.legal-review-card details {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin: 22px 0 16px;
}

.legal-review-card summary {
    color: var(--purple-800);
    cursor: pointer;
    font-weight: 800;
    padding: 15px 18px;
}

.canonical-text {
    border-top: 1px solid var(--line);
    color: #342a43;
    max-height: 34rem;
    overflow: auto;
    padding: 22px;
    white-space: normal;
}

.presentation-note,
.decision-card > p {
    color: var(--muted);
}

.decision-card {
    display: grid;
    gap: 12px;
}

.decision-card input[type="text"],
.decision-card input[type="email"],
.decision-card input[type="tel"],
.decision-card select {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    font: inherit;
    min-height: 50px;
    padding: 13px 14px;
    width: 100%;
}

.parent-card {
    gap: 16px;
}

.parent-field {
    display: grid;
    gap: 7px;
}

.parent-field label {
    color: var(--purple-900);
    font-weight: 800;
}

.parent-card input[type="text"],
.parent-card input[type="email"],
.parent-card input[type="tel"],
.parent-card select {
    font-size: 1rem;
    min-height: 52px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.parent-card input:focus,
.parent-card select:focus {
    border-color: var(--purple-700);
    box-shadow: 0 0 0 4px rgba(90, 44, 160, .1);
}

.review-signature-button {
    background: linear-gradient(135deg, var(--purple-800), var(--purple-700));
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    justify-self: start;
    margin-top: 6px;
    min-height: 50px;
    padding: 13px 24px;
    transition: box-shadow .2s ease, transform .2s ease;
}

.review-signature-button:hover,
.review-signature-button:focus-visible {
    box-shadow: 0 14px 30px rgba(67, 32, 122, .24);
    outline: none;
    transform: translateY(-1px);
}

.parent-signature-record {
    border-left: 4px solid var(--mint);
    margin-top: 8px;
    padding: 22px;
}

.parent-signature-record .signature-label {
    color: var(--purple-800);
    font-weight: 800;
}

.parent-signature-record strong {
    font-size: clamp(1.15rem, 3vw, 1.45rem);
    letter-spacing: .025em;
}

.legal-acceptance-form > button {
    background: linear-gradient(135deg, var(--purple-800), var(--purple-700));
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 800;
    min-height: 54px;
    padding: 15px 24px;
}

.legal-acceptance-form > button:disabled {
    background: #9b94a5;
    cursor: not-allowed;
}

.contract-summary strong {
    color: var(--purple-800);
    font-size: 1.5rem;
}

.form-disclaimer {
    font-size: .92rem;
    margin: 8px 0 0;
}

.success-section {
    display: grid;
    min-height: 65vh;
    padding: 60px 20px;
    place-items: center;
}

.success-panel {
    background: #ffffff;
    border: 1.5px solid var(--line, rgba(90, 44, 160, .14));
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(47, 20, 95, .08);
    max-width: 640px;
    padding: 48px 36px;
    text-align: center;
    width: 100%;
}

.success-badge-icon {
    align-items: center;
    background: linear-gradient(135deg, rgba(90, 44, 160, 0.1) 0%, rgba(120, 70, 190, 0.18) 100%);
    border: 2px solid rgba(90, 44, 160, 0.2);
    border-radius: 50%;
    color: var(--purple-800, #43207a);
    display: inline-flex;
    height: 76px;
    justify-content: center;
    margin-bottom: 20px;
    width: 76px;
    box-shadow: 0 8px 24px rgba(90, 44, 160, 0.12);
}

.eyebrow-badge {
    background: rgba(90, 44, 160, 0.08);
    border-radius: 999px;
    color: var(--purple-800, #43207a);
    display: inline-block;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .06em;
    margin-bottom: 12px;
    padding: 4px 14px;
    text-transform: uppercase;
}

.success-title {
    color: var(--purple-900, #2a1154);
    font-size: clamp(1.6rem, 3.2vw, 2.1rem);
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1.25;
    margin: 0 0 12px;
}

.success-subtitle {
    color: #55486a;
    font-size: 1.02rem;
    line-height: 1.6;
    margin: 0 auto 28px;
    max-width: 520px;
}

.success-email-notice {
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(90, 44, 160, 0.03) 0%, rgba(120, 70, 190, 0.07) 100%);
    border: 1.5px solid rgba(90, 44, 160, 0.16);
    border-radius: 16px;
    display: flex;
    gap: 16px;
    margin: 0 0 32px;
    padding: 22px 24px;
    text-align: left;
}

.email-notice-icon {
    align-items: center;
    background: var(--purple-800, #43207a);
    border-radius: 12px;
    color: #ffffff;
    display: flex;
    flex-shrink: 0;
    height: 44px;
    justify-content: center;
    width: 44px;
    box-shadow: 0 4px 12px rgba(67, 32, 122, 0.2);
}

.email-notice-content {
    flex: 1;
}

.email-notice-content h3 {
    color: var(--purple-900, #2a1154);
    font-size: 1.02rem;
    font-weight: 800;
    margin: 0 0 6px;
}

.email-notice-content p {
    color: #4a3e60;
    font-size: .92rem;
    line-height: 1.55;
    margin: 0;
}

.email-address-highlight {
    color: var(--purple-800, #43207a);
    font-weight: 800;
    word-break: break-all;
}

.success-actions {
    display: flex;
    justify-content: center;
}

.success-home-btn {
    gap: 8px;
}

.status-note {
    margin: 28px auto 0;
    max-width: 620px;
    text-align: left;
}

.legal-main {
    padding-bottom: 70px;
}

.legal-hero {
    display: block;
    padding-bottom: 48px;
    text-align: center;
}

.legal-hero-copy {
    align-items: center;
}

.legal-hero-copy h1 {
    max-width: 940px;
}

.legal-hero-copy > p:not(.eyebrow) {
    margin: 18px auto 0;
    max-width: 680px;
}

.document-layout {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: 270px minmax(0, 1fr);
}

.document-sidebar {
    background: rgba(255, 255, 255, .82);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    position: sticky;
    top: 18px;
}

.document-sidebar a {
    border-radius: var(--radius);
    display: block;
    margin-top: 8px;
    padding: 12px 14px;
}

.document-sidebar a.is-active {
    background: var(--purple-800);
    border-color: var(--purple-800);
    color: #ffffff;
}

.legal-paper {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 56px rgba(47, 20, 95, .1);
    padding: clamp(24px, 4vw, 56px);
}

.language-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
}

.language-tab-control {
    height: 1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.language-switch label {
    border-radius: var(--radius);
    min-width: 112px;
    text-align: center;
}

#document-language-es:checked ~ .language-switch label[for="document-language-es"],
#document-language-en:checked ~ .language-switch label[for="document-language-en"] {
    background: var(--purple-800);
    border-color: var(--purple-800);
    color: #ffffff;
}

.legal-paper:has(#document-language-es:focus-visible) .language-switch label[for="document-language-es"],
.legal-paper:has(#document-language-en:focus-visible) .language-switch label[for="document-language-en"] {
    box-shadow: 0 0 0 4px rgba(90, 44, 160, .14);
}

.legal-language {
    display: none;
}

#document-language-es:checked ~ .legal-document-content #espanol,
#document-language-en:checked ~ .legal-document-content #english {
    display: block;
}

.legal-language {
    scroll-margin-top: 92px;
}

.legal-language + .legal-language {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.legal-paper h2 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    margin: 36px 0 14px;
}

.legal-paper h2:first-of-type {
    margin-top: 0;
}

.legal-paper p,
.legal-paper li {
    color: #342a43;
    font-size: 1rem;
}

.legal-paper p {
    margin: 0 0 16px;
}

.legal-paper ul {
    margin: 0 0 22px;
    padding-left: 24px;
}

.legal-paper li + li {
    margin-top: 8px;
}

.legal-note {
    background: var(--soft);
    border-left: 4px solid var(--gold);
    padding: 16px 18px;
}

.site-footer {
    background:
        linear-gradient(135deg, rgba(90, 44, 160, .18) 0%, transparent 34%),
        linear-gradient(180deg, #44207b 0%, #30165f 54%, #241145 100%);
    color: rgba(255, 255, 255, .76);
    display: flex;
    margin-top: 24px;
    overflow: hidden;
    padding: 56px 24px 24px;
}

.footer-shell {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 1180px;
    width: 100%;
}

.footer-layout {
    align-items: flex-start;
    display: grid;
    gap: clamp(28px, 3.4vw, 48px);
    grid-template-columns: minmax(280px, 1.15fr) minmax(270px, .95fr) minmax(300px, 1fr);
}

.footer-brand,
.footer-policies,
.footer-notice-block {
    min-width: 0;
}

.footer-logo-link {
    display: inline-flex;
    margin: 0 0 24px;
}

.footer-logo {
    display: block;
    filter: grayscale(1) brightness(0) invert(1);
    height: auto;
    max-width: 176px;
    opacity: .72;
}

.site-footer p {
    margin: 0;
}

.footer-about {
    color: rgba(255, 255, 255, .72);
    font-size: .98rem;
    font-weight: 500;
    line-height: 1.62;
    max-width: 430px;
}

.footer-socials {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.footer-social-link {
    align-items: center;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    color: rgba(255, 255, 255, .82);
    display: inline-flex;
    height: 40px;
    justify-content: center;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
    width: 40px;
}

.footer-social-link svg {
    fill: currentColor;
    height: 17px;
    width: 17px;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
    background: rgba(116, 110, 180, .52);
    border-color: rgba(255, 255, 255, .24);
    color: #ffffff;
    outline: none;
    transform: translateY(-2px);
}

.footer-title {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 18px;
}

.footer-policy-list {
    display: grid;
    gap: 9px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-policy-list a {
    align-items: center;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: var(--radius);
    color: rgba(255, 255, 255, .76);
    display: flex;
    font-size: .94rem;
    font-weight: 600;
    line-height: 1.22;
    min-height: 45px;
    padding: 11px 15px;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.footer-policy-list a:hover,
.footer-policy-list a:focus-visible {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .25);
    color: #ffffff;
    outline: none;
    transform: translateY(-1px);
}

.footer-notice {
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: var(--radius);
    color: rgba(255, 255, 255, .76);
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.66;
    min-height: 191px;
    padding: 20px 22px;
}

.site-footer .footer-credits {
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .58);
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.5;
    margin-top: 40px;
    padding-top: 18px;
    text-align: center;
}

@media (max-width: 1240px) {
    .site-footer .footer-credits {
        margin-top: 34px;
    }
}

@media (max-width: 980px) {
    .home-hero,
    .legal-hero,
    .document-layout {
        grid-template-columns: 1fr;
    }

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

    .document-sidebar {
        position: static;
    }

    .footer-layout {
        grid-template-columns: 1fr;
    }

    .personal-data-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    body {
        font-size: 15px;
    }

    .header-shell {
        padding: 18px;
    }

    .secondary-link,
    .language-switch label {
        text-align: center;
    }

    .home-hero,
    .legal-hero,
    .documents-section,
    .acceptance-section,
    .success-section,
    .document-layout {
        padding-left: 18px;
        padding-right: 18px;
    }

    .home-hero,
    .legal-hero {
        padding-top: 34px;
        padding-bottom: 52px;
    }

    .home-copy {
        min-height: auto;
        padding: 28px;
    }

    .home-copy h1 {
        font-size: 2rem;
    }

    .home-copy .hero-lead {
        font-size: 1rem;
    }

    h1 {
        font-size: 2.35rem;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

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

    .document-card {
        min-height: auto;
    }

    .document-card span {
        margin-bottom: 20px;
    }

    .acceptance-form,
    .success-panel {
        padding: 24px;
    }

    .success-section {
        grid-template-columns: minmax(0, 1fr);
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .success-panel {
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        width: 100%;
    }

    .success-panel > *,
    .contract-summary > * {
        max-width: 100%;
        min-width: 0;
    }

    .success-panel .form-disclaimer,
    .contract-summary span {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .success-panel .hero-actions,
    .success-panel form,
    .success-panel .primary-link {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .acceptance-form,
    .unified-normativas-form {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .acceptance-form > *,
    .unified-normativas-form > * {
        min-width: 0;
    }

    .personal-data-grid,
    .parent-fields-grid {
        grid-template-columns: 1fr;
    }

    .contract-reading-section {
        margin-top: 24px;
        width: 100%;
    }

    .contract-reader-header {
        padding: 16px 14px;
    }

    .contract-reader-top-bar {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .contract-reader-title {
        font-size: 1.12rem;
    }

    .contract-language-tabs {
        display: flex;
        justify-content: stretch;
        margin-top: 4px;
        width: 100%;
    }

    .contract-language-tabs .legal-language-tab {
        flex: 1;
        font-size: .85rem;
        min-width: 0;
        padding: 8px 12px;
        text-align: center;
    }

    .contract-reader-body {
        box-sizing: border-box;
        max-height: clamp(300px, 55vh, 420px) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        padding: 16px 14px !important;
        touch-action: pan-y !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .contract-translation p {
        font-size: .9rem;
        line-height: 1.6;
        margin-bottom: 12px;
    }

    .contract-translation h3 {
        font-size: 1.05rem;
        margin: 18px 0 8px;
    }

    .checklist-item:not(.master-checklist-item) {
        align-items: flex-start;
        display: flex;
        gap: 10px;
        padding: 6px 10px !important;
    }

    .checklist-item:not(.master-checklist-item) input[type="checkbox"] {
        flex-shrink: 0;
        height: 16px !important;
        margin-top: 1px;
        width: 16px !important;
    }

    .checklist-item:not(.master-checklist-item) span {
        flex: 1;
        font-size: .80rem !important;
        line-height: 1.35 !important;
        min-width: 0;
    }

    .master-checklist-card {
        padding: 18px 16px;
    }

    .master-checklist-item {
        align-items: flex-start;
        display: flex;
        gap: 12px;
    }

    .master-checklist-item input[type="checkbox"] {
        flex-shrink: 0;
        height: 22px !important;
        margin-top: 2px;
        width: 22px !important;
    }

    .master-checklist-item span strong {
        font-size: 1.02rem !important;
        line-height: 1.3 !important;
    }

    .master-checklist-help {
        font-size: .85rem;
        margin: 8px 0 0 34px;
    }

    .signature-record-container {
        padding: 18px;
    }

    /* iOS Safari assigns date controls an intrinsic width when their native
       appearance is kept. Removing that appearance lets the grid item shrink,
       while the input type continues to open the system date picker. */
    .acceptance-form input[type="date"],
    .field-group input[type="date"] {
        appearance: none;
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2343207a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18'/%3E%3C/svg%3E");
        background-position: right 14px center;
        background-repeat: no-repeat;
        background-size: 20px 20px;
        box-sizing: border-box;
        cursor: pointer;
        display: block;
        inline-size: 100%;
        max-inline-size: 100%;
        max-width: 100%;
        min-inline-size: 0;
        min-width: 0;
        overflow: hidden;
        padding-right: 48px;
        position: relative;
    }

    .acceptance-form input[type="date"]::-webkit-calendar-picker-indicator,
    .field-group input[type="date"]::-webkit-calendar-picker-indicator {
        cursor: pointer;
        height: 100%;
        inset: 0;
        opacity: 0;
        position: absolute;
        width: 100%;
    }

    .acceptance-form input[type="date"]::-webkit-date-and-time-value,
    .field-group input[type="date"]::-webkit-date-and-time-value {
        min-width: 0;
        text-align: left;
    }

    .legal-flow-heading,
    .legal-acceptance-form {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
        padding-left: 18px;
        padding-right: 18px;
        width: 100%;
    }

    .contract-language-tabs {
        flex-wrap: wrap;
        margin-bottom: 20px;
    }

    .contract-language-tabs .legal-language-tab {
        flex: 1 1 110px;
        min-width: 0;
    }

    .contract-translation-notice {
        padding: 13px 15px;
    }

    .legal-acceptance-form > * {
        max-width: 100%;
        min-width: 0;
    }

    .legal-review-card,
    .decision-card {
        max-width: 100%;
        min-width: 0;
    }

    .agreement-document {
        overflow: hidden;
    }

    .agreement-document p,
    .agreement-document h2,
    .agreement-document h3,
    .agreement-document span {
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .agreement-table-wrap {
        max-width: 100%;
        min-width: 0;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }

    .legal-review-title {
        display: grid;
    }

    .legal-portal-hero {
        margin-top: 20px;
        padding: 22px 18px;
    }

    .embedded-legal-documents {
        margin-top: 20px;
    }

    .legal-document-list {
        gap: 14px;
    }

    .embedded-legal-documents .embedded-legal-document summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        min-height: auto;
        padding: 16px 18px;
    }

    .summary-doc-meta {
        align-items: flex-start;
        gap: 14px;
        width: 100%;
    }

    .doc-badge-num {
        height: 36px;
        width: 36px;
        font-size: .88rem;
    }

    .summary-doc-action {
        align-self: flex-end;
        gap: 12px;
    }

    .legal-document-toggle {
        height: 34px;
        width: 34px;
    }

    .embedded-legal-documents .embedded-legal-document .canonical-text {
        padding: 0;
    }

    .legal-language-tabs {
        padding: 12px 14px;
    }

    .legal-language-tab {
        min-width: 86px;
        padding: 9px 13px;
    }

    .legal-document-scroll {
        max-height: 55vh;
        padding: 22px 16px;
    }

    .legal-document-translation {
        padding-left: 16px;
    }

    .review-signature-button {
        justify-self: stretch;
        width: 100%;
    }

    .legal-paper {
        padding: 22px;
    }

    .site-footer {
        padding-top: 42px;
        padding-left: 18px;
        padding-bottom: 22px;
        padding-right: 18px;
    }

    .footer-layout {
        gap: 28px;
    }

    .footer-socials {
        gap: 12px;
        margin-top: 20px;
    }

    .footer-logo {
        max-width: 152px;
    }

    .footer-about,
    .footer-notice {
        font-size: .94rem;
    }

    .footer-notice {
        padding: 18px;
    }

    .site-footer .footer-credits {
        margin-top: 30px;
    }
}
