/* =========================================================
   Variables y reseteo base
   ========================================================= */
:root {
    --color-bg: #FAF7FB;
    --color-bg-muted: #EFE4F3;
    --color-primary: #8B6FAE;
    /* morado desaturado (aros del logo) */
    --color-primary-dark: #5A3C78;
    --color-primary-warm: #8C4F72;
    /* version calida del morado, para superficies intensas */
    --color-primary-warm-dark: #6E3B5A;
    --color-secondary: #6FA39D;
    /* verde azulado del logo, desaturado */
    --color-turquoise: #2FA9A3;
    /* turquesa del logo */
    --color-accent: #CBB3D6;
    /* lila claro del logo */
    --color-text: #392B3F;
    --color-text-light: #6B5A72;
    --color-white: #FFFFFF;
    --color-whatsapp: #25D366;

    --font-main: 'Nunito Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius: 0.778rem;
    --shadow: 0 0.333rem 1rem rgba(51, 64, 58, 0.12);
    --navbar-height: 3.333rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* En móviles pequeños (320px-400px) escala suavemente de 16px (100%) a 18px (112.5%)
       para evitar desbordes y aprovechar mejor el ancho de pantalla. */
    font-size: clamp(100%, 4.4vw, 112.5%);
}

@media (min-width: 640px) {
    html {
        /* Escala fluida y proporcional para UI:
           - En pantallas <= 1280px (laptops, tablets o Windows con escala 150%):
             La fuente base es 18px (112.5% de 16px), reproduciendo con exactitud el diseño óptimo.
           - Entre 1280px y 1920px (ej. monitores Full HD con zoom al 100%):
             Escala suavemente a 1.40625vw (de 18px a 27px = 18px * 1.5).
           - En pantallas >= 1920px:
             Se fija en 168.75% (27px = 1.5x), de modo que en pantallas de escritorio con zoom al 100%
             la página luce con las proporciones generosas, tipografías legibles y distribución
             idéntica a como se ve con 150% de zoom de Windows. */
        font-size: clamp(112.5%, 1.40625vw, 168.75%);
    }
}

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    padding-top: var(--navbar-height);
    overflow-x: clip;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3 {
    font-weight: 800;
    color: var(--color-text);
    margin: 0 0 0.5em;
    text-wrap: balance;
}

p,
li {
    text-wrap: pretty;
}

p {
    margin: 0 0 1em;
    color: var(--color-text-light);
}

a {
    color: var(--color-primary-dark);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.778rem 1.556rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.3;
    font-family: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    touch-action: manipulation;
}

.btn--primary {
    background: var(--color-primary-warm);
    color: var(--color-white);
    box-shadow: var(--shadow);
}

.btn--primary:hover {
    transform: translateY(-2px);
    background: var(--color-primary-warm-dark);
}

/* =========================================================
   Navbar persistente
   ========================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: var(--color-white);
    box-shadow: 0 0.111rem 0.556rem rgba(0, 0, 0, 0.06);
    z-index: 1000;
}

.navbar__inner {
    max-width: 61.111rem;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.889rem;
    gap: 0.5rem;
}

.navbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    text-decoration: none;
    font-size: clamp(0.92rem, 3.8vw, 1.05rem);
    white-space: nowrap;
    min-width: 0;
}

.navbar__logo {
    width: 2.222rem;
    height: 2.222rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.navbar__toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.278rem;
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    border: none;
    border-radius: 0.444rem;
    cursor: pointer;
    padding: 0.444rem;
    flex-shrink: 0;
    touch-action: manipulation;
}

.navbar__toggle span {
    width: 1.25rem;
    height: 0.111rem;
    background: var(--color-text);
    border-radius: 0.111rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(0.389rem) rotate(45deg);
}

.navbar__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.navbar__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-0.389rem) rotate(-45deg);
}

.navbar__nav {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    display: none;
    padding: 0.444rem 0.889rem 1rem;
    box-shadow: 0 0.444rem 1rem rgba(57, 43, 63, 0.12);
    max-height: calc(100dvh - var(--navbar-height));
    overflow-y: auto;
    overscroll-behavior: contain;
}

.navbar__nav.is-open {
    display: flex;
}

.nav-link {
    padding: 0.722rem 0.222rem;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    border-bottom: 1px solid var(--color-bg-muted);
    white-space: nowrap;
}

.nav-link--cta {
    margin-top: 0.556rem;
    background: var(--color-primary-warm);
    color: var(--color-white) !important;
    text-align: center;
    border-radius: 999px;
    padding: 0.667rem 1rem;
    border-bottom: none;
}

/* =========================================================
   Hero: visible sin necesidad de scroll
   ========================================================= */
.hero {
    min-height: calc(100dvh - var(--navbar-height));
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.667rem 0.889rem 1.5rem;
    /* menos espacio arriba y más abajo: sube el recuadro dentro del hero */
    background-image: linear-gradient(180deg, rgba(236, 230, 242, 0.52) 0%, rgba(248, 246, 250, 0.65) 100%), url('../images/background_photo.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    scroll-margin-top: var(--navbar-height);
}

.hero__card {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.222rem 1.111rem;
    max-width: 56rem;
    width: 100%;
}

.hero__media {
    width: clamp(7.25rem, 32vw, 9rem);
    flex-shrink: 0;
}

.hero__photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.hero__content {
    max-width: 32rem;
    flex: 1;
    min-width: 0;
}

.hero__badge {
    display: inline-block;
    background: var(--color-bg-muted);
    color: var(--color-primary-dark);
    border: 1px solid rgba(139, 111, 174, 0.35);
    padding: 0.389rem 0.778rem;
    /* border-radius moderado: con más texto (ciudad + modalidades), un chip
       redondeado se ve mejor que una píldora cuando el contenido ocupa varias líneas */
    border-radius: var(--radius);
    font-size: clamp(0.78rem, 3.2vw, 0.85rem);
    line-height: 1.4;
    font-weight: 800;
    margin-bottom: 0.556rem;
    max-width: 100%;
    text-wrap: wrap;
}

@media (min-width: 1150px) {
    .hero__badge {
        white-space: nowrap;
    }
}

.hero__title {
    font-size: clamp(1.35rem, 5.2vw, 1.55rem);
    line-height: 1.26;
    margin-bottom: 0.5rem;
}

.hero__title-main {
    display: block;
}

.hero__subtitle {
    font-size: clamp(0.92rem, 3.6vw, 0.98rem);
    margin-bottom: 0.667rem;
    color: var(--color-text);
}

.hero__specialties {
    list-style: none;
    margin: 0 0 0.944rem;
    padding: 0;
    display: grid;
    gap: 0.36rem;
    text-align: left;
}

.hero__specialties li {
    background: rgba(255, 255, 255, 0.9);
    border-left: 3px solid var(--color-turquoise);
    padding: 0.389rem 0.611rem;
    border-radius: 0 0.444rem 0.444rem 0;
    font-size: clamp(0.84rem, 3.3vw, 0.88rem);
    line-height: 1.4;
    color: var(--color-text-light);
    box-shadow: 0 1px 3px rgba(57, 43, 63, 0.05);
}

.hero__specialties strong {
    color: var(--color-primary-dark);
}

.hero__cta {
    width: 100%;
    max-width: 19rem;
    margin-top: 0.111rem;
}

/* =========================================================
   Secciones genéricas
   ========================================================= */
.section {
    padding: 2.444rem 1rem;
    max-width: 55.556rem;
    margin: 0 auto;
    scroll-margin-top: var(--navbar-height);
}

.section--muted {
    background: var(--color-bg-muted);
    max-width: none;
}

.section--muted>* {
    max-width: 55.556rem;
    margin-left: auto;
    margin-right: auto;
}

.section__title {
    font-size: clamp(1.35rem, 4.8vw, 1.5rem);
    text-align: center;
}

.section__subtitle {
    text-align: center;
    max-width: 31.111rem;
    margin: 0 auto 1.556rem;
}

.section__subtitle--wide {
    max-width: 44.444rem;
}

/* Perfil profesional */
.profile__intro {
    text-align: center;
    max-width: 35.556rem;
    margin: 0 auto 1.778rem;
}

@media (max-width: 639px) {
    .profile__intro br,
    .section__subtitle br {
        display: none;
    }
}

.profile__facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.889rem;
    grid-template-columns: 1fr;
}

.profile__fact {
    display: flex;
    gap: 0.778rem;
    background: var(--color-white);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    align-items: flex-start;
}

.profile__fact>div {
    flex: 1;
    min-width: 0;
}

.profile__fact-icon {
    font-size: 1.6rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.profile__fact strong {
    color: var(--color-primary-dark);
}

.profile__fact p {
    margin: 0.222rem 0 0;
}

/* Pasos del proceso (compactados para evitar fatiga de scroll) */
.steps {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 35.556rem;
    display: grid;
    gap: 0.778rem;
}

.steps__item {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 0.944rem 1rem 0.944rem 3rem;
    position: relative;
    box-shadow: var(--shadow);
}

.steps__number {
    position: absolute;
    left: 0.778rem;
    top: 0.944rem;
    width: 1.667rem;
    height: 1.667rem;
    background: var(--color-primary-warm);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}

.steps__number--icon {
    background: var(--color-bg-muted);
    font-size: 0.95rem;
}

.steps__item h3 {
    font-size: 1.02rem;
    margin-bottom: 0.278rem;
}

.steps__item p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Servicios y modalidades (jerarquía diferenciada: servicio principal + 2 modalidades) */
.services {
    display: grid;
    gap: 0.889rem;
    grid-template-columns: 1fr;
}

.service-card {
    background: var(--color-white);
    border-top: 0.222rem solid var(--color-turquoise);
    border-radius: var(--radius);
    padding: 1.111rem 1.222rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 0.889rem;
}

.service-card--featured {
    border-top: 0.278rem solid var(--color-primary-warm);
    background: linear-gradient(180deg, #FFFFFF 0%, #FDFBFE 100%);
}

.service-card__icon {
    font-size: 1.6rem;
    line-height: 1.2;
    flex-shrink: 0;
    margin-top: 0.111rem;
}

.service-card__body {
    flex: 1;
    min-width: 0;
}

.service-card__tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-secondary);
    margin-bottom: 0.167rem;
}

.service-card--featured .service-card__tag {
    color: var(--color-primary-warm);
}

.service-card h3 {
    color: var(--color-primary-dark);
    font-size: 1.08rem;
    margin-bottom: 0.278rem;
}

.service-card--featured h3 {
    font-size: 1.2rem;
}

.service-card p {
    margin: 0;
}

/* Ubicación, horarios y honorarios */
.info-grid {
    display: grid;
    gap: 0.889rem;
    grid-template-columns: 1fr;
}

.info-card {
    background: var(--color-white);
    border-top: 0.222rem solid var(--color-primary-warm);
    border-radius: var(--radius);
    padding: 1.111rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.info-card__icon {
    font-size: 1.6rem;
    display: block;
    margin-bottom: 0.333rem;
}

.info-card h3 {
    color: var(--color-primary-dark);
    font-size: 1.05rem;
}

.info-card p {
    margin: 0 0 0.444rem;
}

.info-card> :last-child {
    margin-bottom: 0;
}

.info-card__link {
    display: inline-block;
    font-weight: 700;
    color: var(--color-primary-dark);
    padding: 0.167rem 0;
}

/* =========================================================
   Sección de Contacto y Formulario (2 columnas en escritorio)
   ========================================================= */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.556rem;
    align-items: start;
}

.contact-layout__info {
    text-align: center;
    max-width: 32rem;
    margin: 0 auto;
    min-width: 0;
}

.contact-layout__title {
    margin-bottom: 0.667rem;
}

.contact-layout__subtitle {
    margin-bottom: 1.111rem;
    color: var(--color-text);
}

.contact-trust {
    display: flex;
    align-items: flex-start;
    gap: 0.667rem;
    background: rgba(255, 255, 255, 0.72);
    border-left: 4px solid var(--color-primary-warm);
    padding: 0.889rem 1rem;
    border-radius: 0.556rem;
    text-align: left;
    box-shadow: 0 2px 6px rgba(57, 43, 63, 0.06);
}

.contact-trust__icon {
    font-size: 1.25rem;
    line-height: 1.3;
    flex-shrink: 0;
}

.contact-trust p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.45;
}

.contact-layout__form-wrapper {
    width: 100%;
    max-width: 26.667rem;
    margin: 0 auto;
    min-width: 0;
}

.booking-form {
    display: grid;
    gap: 0.833rem;
    background: var(--color-white);
    padding: 1.111rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.333rem;
    min-width: 0;
}

.field[hidden] {
    display: none;
}

.field label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-text);
}

.field input,
.field select {
    width: 100%;
    max-width: 100%;
    min-height: 2.667rem;
    padding: 0.667rem 0.778rem;
    border: 1px solid #DBD3E5;
    border-radius: 0.556rem;
    font-size: 1rem;
    font-family: inherit;
    background: var(--color-bg);
    color: var(--color-text);
    text-overflow: ellipsis;
}

/* Placeholder de selects: color atenuado mientras no hay selección */
.field select:required:invalid {
    color: var(--color-text-light);
}

.field select option {
    color: var(--color-text);
}

.field select option[disabled] {
    color: #9E8FA6;
}

.field input:focus,
.field select:focus {
    outline: 0.111rem solid var(--color-secondary);
    outline-offset: 0.056rem;
}

.field-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.556rem;
    margin: 0.222rem 0;
}

.field-checkbox input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    accent-color: var(--color-primary-warm);
    cursor: pointer;
    flex-shrink: 0;
}

.field-checkbox label {
    font-size: 0.82rem;
    color: var(--color-text-light);
    line-height: 1.35;
    cursor: pointer;
}

.field-checkbox label a {
    color: var(--color-primary-dark);
    text-decoration: underline;
    font-weight: 600;
}

.booking-form__submit {
    width: 100%;
}

/* Mensaje de confirmación post-envío */
.booking-confirmation {
    margin-top: 1rem;
    background: var(--color-white);
    border-top: 0.222rem solid var(--color-turquoise);
    border-radius: var(--radius);
    padding: 1.222rem;
    box-shadow: var(--shadow);
    font-size: 0.92rem;
}

.booking-confirmation[hidden] {
    display: none;
}

.booking-confirmation__title {
    color: var(--color-primary-dark);
    font-size: 1.05rem;
    margin-bottom: 0.556rem;
}

.booking-confirmation__signature {
    color: var(--color-text);
    font-weight: 600;
    margin-bottom: 0.556rem;
}

.booking-confirmation__fallback {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary-warm);
    text-decoration: underline;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
    background: var(--color-primary-warm-dark);
    color: #E8E1EF;
    padding: 2rem 1rem 1.111rem;
}

.footer__inner {
    max-width: 44.444rem;
    margin: 0 auto;
    text-align: center;
    font-size: 0.85rem;
}

.footer__inner strong {
    color: #fff;
}

.footer__policy {
    opacity: 0.9;
}

.footer__emergency {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.889rem;
    margin-bottom: 0.889rem;
}

.footer a {
    color: #FFFFFF;
    text-decoration: underline;
    padding: 0.15rem 0.1rem;
}

.footer__copy {
    opacity: 0.7;
    margin-top: 0.667rem;
}

/* =========================================================
   Adaptaciones para pantallas más grandes (tablet / desktop)
   La experiencia sigue priorizando el diseño móvil.
   ========================================================= */
@media (min-width: 640px) {
    .section {
        padding: 3.111rem 1.333rem;
    }

    .hero {
        padding: 1.111rem 1.5rem 2.222rem;
    }

    .hero__card {
        gap: 1.333rem;
        padding: 1.667rem 1.778rem;
    }

    .hero__media {
        width: 9.5rem;
    }

    .hero__title {
        font-size: 1.75rem;
    }

    .hero__cta {
        width: auto;
    }

    .profile__facts {
        grid-template-columns: 1fr 1fr;
    }

    .steps {
        max-width: 55.556rem;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.889rem;
    }

    .services {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card--featured {
        grid-column: 1 / -1;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-card:last-child {
        grid-column: 1 / -1;
    }

    .booking-form {
        padding: 1.333rem;
    }
}

@media (min-width: 768px) {
    .hero {
        padding: 1.333rem clamp(1.222rem, 3vw, 2.222rem) 3rem;
    }

    .hero__card {
        flex-direction: row;
        text-align: left;
        gap: clamp(1.333rem, 3vw, 2.222rem);
        padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3.5vw, 2.222rem);
    }

    .hero__content {
        text-align: left;
        max-width: 33rem;
    }

    .hero__cta {
        width: auto;
    }

    .hero__media {
        width: clamp(12.5rem, 28vw, 18.889rem);
        max-width: 38%;
        flex-shrink: 0;
    }

    .hero__title {
        font-size: clamp(1.65rem, 2.8vw, 2.1rem);
    }

    .contact-layout {
        grid-template-columns: 1fr 1.05fr;
        gap: 2.222rem;
        align-items: center;
    }

    .contact-layout__info {
        text-align: left;
        margin: 0;
    }

    .contact-layout__title {
        text-align: left;
    }

    .contact-layout__form-wrapper {
        margin: 0;
        justify-self: end;
    }
}

/* Menú horizontal de escritorio y grilla de 3 columnas */
@media (min-width: 860px) {
    .navbar__toggle {
        display: none;
    }

    .navbar__nav {
        position: static;
        display: flex;
        flex-direction: row;
        box-shadow: none;
        padding: 0;
        max-height: none;
        overflow-y: visible;
        gap: clamp(0.75rem, 1.5vw, 1.333rem);
        align-items: center;
        flex-wrap: nowrap;
    }

    .nav-link {
        border-bottom: none;
        padding: 0;
    }

    .nav-link--cta {
        margin-top: 0;
        background: var(--color-primary-warm);
        color: #fff !important;
        padding: 0.444rem 0.889rem;
        border-radius: 999px;
    }

    .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .info-card:last-child {
        grid-column: auto;
    }
}

/* Optimización para móviles en orientación horizontal (landscape) */
@media (max-height: 540px) and (orientation: landscape) and (max-width: 960px) {
    .hero {
        min-height: auto;
        padding: 1rem;
    }

    .hero__card {
        flex-direction: row;
        text-align: left;
        padding: 1.222rem 1.444rem;
        gap: 1.333rem;
    }

    .hero__content {
        text-align: left;
    }

    .hero__media {
        width: 8rem;
        max-width: 28%;
    }

    .hero__cta {
        width: auto;
    }
}

/* =========================================================
   Página de Políticas Legales (Privacidad, Términos)
   ========================================================= */
.legal-page {
    padding: 1.333rem 0.778rem 2.5rem;
    min-height: calc(100dvh - var(--navbar-height) - 10rem);
}

.legal-container {
    max-width: 48rem;
    margin: 0 auto;
    background: var(--color-white);
    padding: 1.333rem 1.111rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.legal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.444rem;
    margin-bottom: 1.333rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.15s ease;
}

.legal-back-link:hover {
    color: var(--color-primary-warm);
    text-decoration: underline;
}

.legal-container h1 {
    font-size: clamp(1.35rem, 4.5vw, 2rem);
    color: var(--color-primary-warm-dark);
    margin-bottom: 0.444rem;
    line-height: 1.25;
}

.legal-updated {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 1.556rem;
    padding-bottom: 0.889rem;
    border-bottom: 1px solid var(--color-bg-muted);
}

.legal-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.legal-content a {
    overflow-wrap: anywhere;
}

.legal-content h2 {
    font-size: clamp(1.1rem, 3.8vw, 1.222rem);
    color: var(--color-primary-dark);
    margin-top: 1.778rem;
    margin-bottom: 0.667rem;
    border-left: 3px solid var(--color-secondary);
    padding-left: 0.667rem;
}

.legal-content h3 {
    font-size: 1.05rem;
    color: var(--color-text);
    margin-top: 1.333rem;
    margin-bottom: 0.444rem;
}

.legal-content p,
.legal-content li {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 0.889rem;
}

.legal-content strong {
    color: var(--color-text);
}

.legal-content ul,
.legal-content ol {
    padding-left: 1.222rem;
    margin-bottom: 1.111rem;
}

.legal-content li {
    margin-bottom: 0.444rem;
}

.legal-highlight-box {
    background: var(--color-bg);
    border-left: 4px solid var(--color-primary-warm);
    padding: 0.889rem 1rem;
    border-radius: 0.444rem;
    margin: 1.333rem 0;
    font-size: 0.9rem;
}

.legal-highlight-box p:last-child {
    margin-bottom: 0;
}

@media (min-width: 640px) {
    .legal-page {
        padding: 2.222rem 1.111rem 3.556rem;
    }

    .legal-container {
        padding: 2.778rem;
    }

    .legal-highlight-box {
        padding: 1rem 1.222rem;
    }
}
