/* Términos y Condiciones Styles */

.terminos-container {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    padding: 110px 20px 40px;
}

.terminos-title {
    text-align: center;
    font-size: 32px;
    font-weight: 900;
    color: #622E1A;
    text-transform: uppercase;
    margin: 0 0 clamp(20px, 4vw, 40px);
    text-shadow:
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.terminos-card {
    width: 100%;
    max-width: 1400px;
    background-color: #ffffff;
    border-radius: 30px;
    padding: clamp(30px, 5vw, 50px) clamp(25px, 4vw, 45px);
    box-sizing: border-box;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 4px 10px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #55362C;
    font-size: clamp(14px, 1.8vw, 16px);
    line-height: 1.7;
    font-weight: 600;
}

.terminos-content {
    color: #622E1A;
    font-size: clamp(14px, 1.8vw, 16px);
    line-height: 1.7;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #f3c302 transparent;
    padding-right: clamp(6px, 1.2vw, 12px);
    /* font-family: 'adobe-clean', sans-serif; */
}

.terminos-content::-webkit-scrollbar {
    width: 8px;
}

.terminos-content::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 8px;
}

.terminos-content::-webkit-scrollbar-thumb {
    background: #f3c302;
    border-radius: 8px;
}

.terminos-content p {
    margin: 0 0 clamp(16px, 2.5vw, 20px);
    text-align: justify;
}

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

.terminos-content strong,
.terminos-content b {
    font-weight: 700;
    color: #4a1f0f;
}

.terminos-content ul,
.terminos-content ol {
    margin: clamp(12px, 2vw, 16px) 0;
    padding-left: clamp(20px, 3vw, 30px);
}

.terminos-content ol {
    list-style-position: outside;
    padding-left: clamp(25px, 3.5vw, 35px);
}

.terminos-content ol li {
    padding-left: clamp(8px, 1.5vw, 12px);
    text-align: justify;
}

.terminos-content li {
    margin-bottom: clamp(8px, 1.5vw, 12px);
}

.terminos-content li p {
    margin: 0;
}

.terminos-content li ul,
.terminos-content li ol {
    margin-top: clamp(8px, 1.5vw, 12px);
    margin-bottom: 0;
}

.terminos-content h2,
.terminos-content h3 {
    color: #4a1f0f;
    font-weight: 800;
    margin: clamp(20px, 3vw, 30px) 0 clamp(12px, 2vw, 16px);
}

.terminos-content h2 {
    font-size: clamp(18px, 2.5vw, 22px);
}

.terminos-content h3 {
    font-size: clamp(16px, 2vw, 18px);
}

/* Responsive Design */

/* Tablet */
@media (min-width: 640px) and (max-width: 1023px) {
    .terminos-container {
        padding: 90px 20px 40px;
    }

    .terminos-card {
        max-width: 700px;
    }
}

/* Mobile */
@media (max-width: 639px) {
    .terminos-container {
        padding: 80px 16px 32px;
    }

    .terminos-card {
        padding: 25px 20px;
        border-radius: 16px;
    }

    .terminos-content {
        font-size: 14px;
    }
}

/* Extra small mobile */
@media (max-width: 400px) {
    .terminos-title {
        font-size: 28px;
    }

    .terminos-card {
        padding: 20px 16px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}