/* Terms & Conditions Custom Styles */

:root {
    /* Shared spacing scale — redefined per breakpoint below so every
       piece of this page (breadcrumb, intro card, terms card, cta)
       stays in sync at every screen size */
    --container-x: 24px;
    --section-y-top: 60px;
    --section-y-bottom: 100px;
    --card-pad-lg: 50px;
    /* intro card + contact cta */
    --card-pad-md: 40px;
    /* terms card */
    --card-overlap: -60px;
    /* pulls the intro card up over the breadcrumb wave */
}

.terms-conditions-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f4f4 100%);
    min-height: 100vh;
}

/* Consistent horizontal padding for every content wrapper on this page.
   Scoped to this page only, so the global .container in the header/
   footer/nav is untouched. */
.terms-conditions-page .container {
    padding-left: var(--container-x);
    padding-right: var(--container-x);
}

.breadcrumb-area.terms-breadcrumb {
    background: url('../images/bread-bg.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    padding: 80px 0 100px;
    overflow: hidden;
}

.breadcrumb-area.terms-breadcrumb .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 142, 142, 0.85) 0%, rgba(21, 128, 128, 0.85) 50%, rgba(16, 112, 112, 0.9) 100%);
    z-index: 1;
}

.breadcrumb-area.terms-breadcrumb .container {
    position: relative;
    z-index: 2;
}

.breadcrumb-area.terms-breadcrumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 2;
}

.breadcrumb-area.terms-breadcrumb .breadcrumb-content {
    position: relative;
    z-index: 3;
}

.terms-intro-card {
    background: white;
    border-radius: 20px;
    padding: var(--card-pad-lg);
    margin: var(--card-overlap) auto 50px;
    max-width: 1000px;
    box-shadow: 0 20px 60px rgba(26, 142, 142, 0.15);
    position: relative;
    z-index: 10;
}

.terms-intro-card .intro-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1a8e8e 0%, #158080 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 10px 30px rgba(26, 142, 142, 0.3);
}

.terms-intro-card .intro-icon i {
    color: white;
    font-size: 36px;
}

.terms-intro-card h3 {
    color: #1a8e8e;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.terms-intro-card p {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 0;
}

.terms-content-section {
    padding: var(--section-y-top) 0 var(--section-y-bottom);
}

.terms-content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.terms-card {
    background: white;
    border-radius: 15px;
    padding: var(--card-pad-md);
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 5px solid #1a8e8e;
}

.terms-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(26, 142, 142, 0.15);
}

.terms-card h1,
.terms-card h2,
.terms-card h3,
.terms-card h4 {
    color: #1a8e8e;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 10px;
}

.terms-card h1 {
    font-size: 32px;
}

.terms-card h2 {
    font-size: 26px;
}

.terms-card h3 {
    font-size: 22px;
}

.terms-card h4 {
    font-size: 18px;
}

.terms-card p {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.terms-card ul,
.terms-card ol {
    margin-bottom: 20px;
    padding-left: 0;
}

.terms-card ul li,
.terms-card ol li {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 12px;
    padding-left: 35px;
    position: relative;
}

.terms-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, #1a8e8e 0%, #158080 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.terms-card ol {
    counter-reset: item;
}

.terms-card ol li {
    counter-increment: item;
}

.terms-card ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, #1a8e8e 0%, #158080 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.terms-card strong {
    color: #1a8e8e;
    font-weight: 600;
}

.terms-card span {
    color: inherit;
    font-weight: inherit;
}

.terms-card img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
}

.terms-card a {
    color: #1a8e8e;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.terms-card a:hover {
    color: #158080;
}

.terms-highlight {
    background: linear-gradient(135deg, #e8f4f4 0%, #d4eded 100%);
    border-left: 4px solid #1a8e8e;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
}

.terms-highlight h4 {
    color: #1a8e8e;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 700;
}

.terms-highlight p {
    margin-bottom: 0;
    color: #555;
}

/* Table Styling */
.terms-card table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.terms-card table thead {
    background: linear-gradient(135deg, #1a8e8e 0%, #158080 100%);
}

.terms-card table thead th {
    color: white;
    font-weight: 600;
    padding: 15px;
    text-align: left;
}

.terms-card table tbody tr {
    border-bottom: 1px solid #e8f4f4;
}

.terms-card table tbody tr:last-child {
    border-bottom: none;
}

.terms-card table tbody td {
    padding: 15px;
    color: #555;
}

.terms-card table tbody tr:hover {
    background: #f5f7fa;
}

/* Tables pasted into CMS content don't reflow — let them scroll
   horizontally instead of squeezing/breaking the layout on phones. */
@media (max-width: 768px) {
    .terms-card table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
}

/* Agreement CTA Section */
.terms-agreement-cta {
    background: linear-gradient(135deg, #1a8e8e 0%, #158080 100%);
    border-radius: 20px;
    padding: var(--card-pad-lg);
    text-align: center;
    margin-top: 50px;
    box-shadow: 0 20px 60px rgba(26, 142, 142, 0.3);
}

.terms-agreement-cta h3 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.terms-agreement-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 30px;
}

.terms-agreement-cta .btn-accept,
.terms-agreement-cta .btn-decline {
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    margin: 8px;
}

.terms-agreement-cta .btn-accept {
    background: white;
    color: #1a8e8e;
    border: none;
}

.terms-agreement-cta .btn-accept:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: #1a8e8e;
}

.terms-agreement-cta .btn-decline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.terms-agreement-cta .btn-decline:hover {
    background: white;
    color: #1a8e8e;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Last Updated Badge */
.terms-conditions-page .last-updated {
    display: inline-block;
    background: #f5f7fa;
    color: #666;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 30px;
}

.terms-conditions-page .last-updated i {
    color: #1a8e8e;
    margin-right: 8px;
}

/* ============================================
   RESPONSIVE DESIGN
   Breakpoints: 1440 / 1024 / 768 / 425 / 375 / 320
   Every element pulls padding/margin from the shared tokens
   defined in :root, so spacing stays in lockstep across the
   whole page at each size.
   ============================================ */

/* ── 1440px — large desktop ───────────────────────────── */
@media (max-width: 1440px) {
    :root {
        --container-x: 24px;
        --section-y-top: 55px;
        --section-y-bottom: 90px;
        --card-pad-lg: 46px;
        --card-pad-md: 36px;
        --card-overlap: -55px;
    }

    .breadcrumb-area.terms-breadcrumb {
        padding: 76px 0 96px;
    }
}

/* ── 1024px — tablet landscape / small laptop ─────────── */
@media (max-width: 1024px) {
    :root {
        --container-x: 20px;
        --section-y-top: 45px;
        --section-y-bottom: 70px;
        --card-pad-lg: 36px;
        --card-pad-md: 30px;
        --card-overlap: -46px;
    }

    .breadcrumb-area.terms-breadcrumb {
        padding: 66px 0 84px;
    }

    .terms-intro-card .intro-icon {
        width: 68px;
        height: 68px;
        margin-bottom: 22px;
    }

    .terms-intro-card .intro-icon i {
        font-size: 30px;
    }

    .terms-intro-card h3 {
        font-size: 24px;
    }

    .terms-intro-card p {
        font-size: 15px;
    }

    .terms-card h1 {
        font-size: 28px;
    }

    .terms-card h2 {
        font-size: 23px;
    }

    .terms-card h3 {
        font-size: 20px;
    }

    .terms-card h4 {
        font-size: 17px;
    }

    .terms-agreement-cta h3 {
        font-size: 24px;
    }
}

/* ── 768px — tablet portrait ──────────────────────────── */
@media (max-width: 768px) {
    :root {
        --container-x: 20px;
        --section-y-top: 36px;
        --section-y-bottom: 56px;
        --card-pad-lg: 28px;
        --card-pad-md: 24px;
        --card-overlap: -38px;
    }

    .breadcrumb-area.terms-breadcrumb {
        padding: 56px 0 76px;
    }

    .terms-intro-card {
        margin-left: 0;
        margin-right: 0;
    }

    .terms-intro-card .intro-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 18px;
    }

    .terms-intro-card .intro-icon i {
        font-size: 26px;
    }

    .terms-intro-card h3 {
        font-size: 21px;
        margin-bottom: 14px;
    }

    .terms-intro-card p {
        font-size: 14px;
    }

    .terms-card h1 {
        font-size: 24px;
    }

    .terms-card h2 {
        font-size: 20px;
    }

    .terms-card h3 {
        font-size: 18px;
    }

    .terms-card h4 {
        font-size: 16px;
    }

    .terms-card p,
    .terms-card ul li,
    .terms-card ol li {
        font-size: 14px;
    }

    .terms-card table thead th,
    .terms-card table tbody td {
        padding: 12px;
        font-size: 13px;
    }

    .terms-agreement-cta h3 {
        font-size: 21px;
    }

    .terms-agreement-cta p {
        font-size: 14px;
        margin-bottom: 22px;
    }

    .terms-agreement-cta .btn-accept,
    .terms-agreement-cta .btn-decline {
        padding: 13px 32px;
        font-size: 14px;
    }

    .terms-conditions-page .last-updated {
        font-size: 13px;
        padding: 8px 16px;
    }
}

/* ── 425px — large phones ─────────────────────────────── */
@media (max-width: 425px) {
    :root {
        --container-x: 16px;
        --section-y-top: 28px;
        --section-y-bottom: 44px;
        --card-pad-lg: 22px;
        --card-pad-md: 20px;
        --card-overlap: -30px;
    }

    .breadcrumb-area.terms-breadcrumb {
        padding: 44px 0 64px;
    }

    .terms-intro-card {
        border-radius: 16px;
        margin-bottom: 30px;
    }

    .terms-intro-card .intro-icon {
        width: 54px;
        height: 54px;
        margin-bottom: 14px;
    }

    .terms-intro-card .intro-icon i {
        font-size: 22px;
    }

    .terms-intro-card h3 {
        font-size: 19px;
        margin-bottom: 12px;
    }

    .terms-intro-card p {
        font-size: 13.5px;
    }

    .terms-card {
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .terms-card h1 {
        font-size: 21px;
    }

    .terms-card h2 {
        font-size: 18px;
    }

    .terms-card h3 {
        font-size: 16.5px;
    }

    .terms-card h4 {
        font-size: 15px;
    }

    .terms-card p,
    .terms-card ul li,
    .terms-card ol li {
        font-size: 13.5px;
        margin-bottom: 10px;
    }

    .terms-card ul li,
    .terms-card ol li {
        padding-left: 30px;
    }

    .terms-card ul li::before,
    .terms-card ol li::before {
        width: 21px;
        height: 21px;
        font-size: 11px;
    }

    .terms-highlight {
        padding: 18px;
        margin: 22px 0;
    }

    .terms-highlight h4 {
        font-size: 16px;
    }

    .terms-highlight p {
        font-size: 13.5px;
    }

    .terms-card table thead th,
    .terms-card table tbody td {
        padding: 10px;
        font-size: 12.5px;
    }

    .terms-agreement-cta {
        border-radius: 16px;
        margin-top: 30px;
    }

    .terms-agreement-cta h3 {
        font-size: 19px;
    }

    .terms-agreement-cta p {
        font-size: 13.5px;
        margin-bottom: 20px;
    }

    .terms-agreement-cta .btn-accept,
    .terms-agreement-cta .btn-decline {
        padding: 12px 26px;
        font-size: 13.5px;
        display: block;
        width: 100%;
        margin: 6px 0;
    }

    .terms-conditions-page .last-updated {
        font-size: 12.5px;
        padding: 8px 14px;
        margin-bottom: 20px;
    }
}

/* ── 375px — standard phones ──────────────────────────── */
@media (max-width: 375px) {
    :root {
        --container-x: 14px;
        --section-y-top: 24px;
        --section-y-bottom: 36px;
        --card-pad-lg: 18px;
        --card-pad-md: 18px;
        --card-overlap: -24px;
    }

    .breadcrumb-area.terms-breadcrumb {
        padding: 36px 0 54px;
    }

    .terms-intro-card .intro-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }

    .terms-intro-card .intro-icon i {
        font-size: 20px;
    }

    .terms-intro-card h3 {
        font-size: 17px;
    }

    .terms-intro-card p {
        font-size: 13px;
    }

    .terms-card h1 {
        font-size: 19px;
    }

    .terms-card h2 {
        font-size: 17px;
    }

    .terms-card h3 {
        font-size: 15.5px;
    }

    .terms-card h4 {
        font-size: 14.5px;
    }

    .terms-card p,
    .terms-card ul li,
    .terms-card ol li {
        font-size: 13px;
    }

    .terms-agreement-cta h3 {
        font-size: 17px;
    }

    .terms-agreement-cta .btn-accept,
    .terms-agreement-cta .btn-decline {
        padding: 11px 22px;
        font-size: 13px;
    }
}

/* ── 320px — small phones ─────────────────────────────── */
@media (max-width: 320px) {
    :root {
        --container-x: 12px;
        --section-y-top: 20px;
        --section-y-bottom: 30px;
        --card-pad-lg: 16px;
        --card-pad-md: 16px;
        --card-overlap: -18px;
    }

    .breadcrumb-area.terms-breadcrumb {
        padding: 130px 0 46px;
    }

    .terms-intro-card .intro-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 10px;
    }

    .terms-intro-card .intro-icon i {
        font-size: 18px;
    }

    .terms-intro-card h3 {
        font-size: 16px;
    }

    .terms-intro-card p {
        font-size: 12.5px;
    }

    .terms-card h1 {
        font-size: 18px;
    }

    .terms-card h2 {
        font-size: 16px;
    }

    .terms-card h3 {
        font-size: 15px;
    }

    .terms-card h4 {
        font-size: 14px;
    }

    .terms-card p,
    .terms-card ul li,
    .terms-card ol li {
        font-size: 12.5px;
    }

    .terms-card ul li,
    .terms-card ol li {
        padding-left: 26px;
    }

    .terms-card ul li::before,
    .terms-card ol li::before {
        width: 19px;
        height: 19px;
        font-size: 10px;
    }

    .terms-card table thead th,
    .terms-card table tbody td {
        padding: 8px;
        font-size: 12px;
    }

    .terms-agreement-cta h3 {
        font-size: 16px;
    }

    .terms-agreement-cta p {
        font-size: 12.5px;
    }

    .terms-agreement-cta .btn-accept,
    .terms-agreement-cta .btn-decline {
        padding: 10px 20px;
        font-size: 12.5px;
    }

    .terms-conditions-page .last-updated {
        font-size: 11.5px;
        padding: 7px 12px;
    }
}