/* =========================================================
   SmartClass Group - Terms and Conditions
   File: assets/css/terms-conditions.css
   ========================================================= */

:root {
    --terms-primary: #2563eb;
    --terms-primary-dark: #1d4ed8;
    --terms-primary-light: #dbeafe;

    --terms-success: #16a34a;
    --terms-success-light: #dcfce7;
    --terms-warning: #d97706;
    --terms-warning-light: #fef3c7;
    --terms-danger: #dc2626;
    --terms-danger-light: #fee2e2;

    --terms-heading: #0f172a;
    --terms-text: #475569;
    --terms-muted: #94a3b8;
    --terms-border: #e2e8f0;
    --terms-background: #f8fafc;
    --terms-white: #ffffff;

    --terms-radius: 16px;
    --terms-shadow:
        0 10px 35px rgba(15, 23, 42, 0.07);
    --terms-transition: 0.25s ease;
}

/* =========================================================
   General
   ========================================================= */

.terms-conditions-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: var(--terms-background);
    color: var(--terms-text);
}

.terms-conditions-page *,
.terms-conditions-page *::before,
.terms-conditions-page *::after {
    box-sizing: border-box;
}

.terms-conditions-page img {
    max-width: 100%;
}

/* =========================================================
   Terms Hero
   ========================================================= */

.terms-hero {
    position: relative;
    width: 100%;
    padding: 105px 0 110px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(59, 130, 246, 0.22),
            transparent 33%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(147, 51, 234, 0.13),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #07152f 0%,
            #0f2a5c 55%,
            #123d79 100%
        );
    color: var(--terms-white);
}

.terms-hero::before {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );
    background-size: 50px 50px;
    content: "";
    pointer-events: none;
}

.terms-hero .container {
    position: relative;
    z-index: 3;
}

.terms-hero-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.terms-hero .shape-one {
    right: 8%;
    bottom: -120px;
    width: 300px;
    height: 300px;
    border: 45px solid rgba(96, 165, 250, 0.08);
}

.terms-hero .shape-two {
    top: 90px;
    right: 28%;
    width: 85px;
    height: 85px;
    background: rgba(167, 139, 250, 0.08);
}

.terms-breadcrumb {
    margin-bottom: 27px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
}

.terms-breadcrumb a {
    color: rgba(255, 255, 255, 0.72);
    transition: color var(--terms-transition);
}

.terms-breadcrumb a:hover {
    color: var(--terms-white);
}

.terms-breadcrumb span:last-child {
    color: var(--terms-white);
}

.terms-hero-content {
    max-width: 870px;
}

.terms-label {
    margin-bottom: 17px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(147, 197, 253, 0.28);
    border-radius: 30px;
    background: rgba(59, 130, 246, 0.16);
    color: #bfdbfe;
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    backdrop-filter: blur(8px);
}

.terms-hero-content h1 {
    margin: 0;
    color: var(--terms-white);
    font-size: clamp(40px, 6vw, 66px);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -2px;
}

.terms-hero-content > p {
    max-width: 780px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 15px;
    line-height: 1.85;
}

.terms-meta {
    margin-top: 25px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
}

.terms-meta span {
    padding: 7px 11px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.78);
    font-size: 10px;
}

/* =========================================================
   Main Terms Layout
   ========================================================= */

.terms-content-section {
    padding: 80px 0 90px;
    background: var(--terms-background);
}

.terms-layout {
    display: grid;
    grid-template-columns:
        minmax(240px, 290px)
        minmax(0, 1fr);
    align-items: start;
    gap: 28px;
}

/* =========================================================
   Sidebar Navigation
   ========================================================= */

.terms-sidebar {
    position: sticky;
    top: 95px;
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.terms-navigation,
.terms-help-card {
    overflow: hidden;
    border: 1px solid var(--terms-border);
    border-radius: var(--terms-radius);
    background: var(--terms-white);
    box-shadow: var(--terms-shadow);
}

.navigation-heading {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid var(--terms-border);
    background: #f8fafc;
    color: var(--terms-heading);
    font-size: 12px;
    font-weight: 750;
}

.navigation-heading i {
    color: var(--terms-primary);
}

.terms-navigation nav {
    max-height: calc(100vh - 270px);
    padding: 8px;
    overflow-y: auto;
}

.terms-navigation nav::-webkit-scrollbar {
    width: 4px;
}

.terms-navigation nav::-webkit-scrollbar-thumb {
    border-radius: 20px;
    background: #cbd5e1;
}

.terms-navigation nav a {
    position: relative;
    padding: 9px 11px;
    display: block;
    border-radius: 7px;
    color: #64748b;
    font-size: 10px;
    line-height: 1.5;
    transition:
        color var(--terms-transition),
        background var(--terms-transition),
        padding-left var(--terms-transition);
}

.terms-navigation nav a:hover,
.terms-navigation nav a.active {
    padding-left: 15px;
    background: var(--terms-primary-light);
    color: var(--terms-primary-dark);
}

.terms-navigation nav a.active {
    font-weight: 700;
}

.terms-navigation nav a.active::before {
    position: absolute;
    top: 50%;
    left: 6px;
    width: 3px;
    height: 16px;
    border-radius: 10px;
    background: var(--terms-primary);
    content: "";
    transform: translateY(-50%);
}

/* Terms Help */

.terms-help-card {
    padding: 22px;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(96, 165, 250, 0.18),
            transparent 33%
        ),
        linear-gradient(135deg, #0f172a, #172554);
    color: var(--terms-white);
}

.help-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 15px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.12);
    color: #93c5fd;
    font-size: 17px;
}

.terms-help-card h3 {
    margin: 0;
    color: var(--terms-white);
    font-size: 15px;
    font-weight: 750;
}

.terms-help-card p {
    margin: 7px 0 15px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 10px;
    line-height: 1.7;
}

.terms-help-card a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #93c5fd;
    font-size: 9px;
    font-weight: 700;
}

.terms-help-card a:hover {
    gap: 10px;
    color: var(--terms-white);
}

/* =========================================================
   Terms Article
   ========================================================= */

.terms-article {
    min-width: 0;
    padding: 42px;
    border: 1px solid var(--terms-border);
    border-radius: var(--terms-radius);
    background: var(--terms-white);
    box-shadow: var(--terms-shadow);
}

/* Terms Introduction */

.terms-introduction {
    margin-bottom: 42px;
    padding: 22px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border: 1px solid #bfdbfe;
    border-radius: 13px;
    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #f8fbff
        );
}

.introduction-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--terms-primary);
    color: var(--terms-white);
    font-size: 19px;
}

.terms-introduction h2 {
    margin: 0 0 5px;
    color: var(--terms-heading);
    font-size: 18px;
    font-weight: 750;
}

.terms-introduction p {
    margin: 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.75;
}

/* =========================================================
   Terms Sections
   ========================================================= */

.terms-section {
    position: relative;
    padding-top: 6px;
    scroll-margin-top: 105px;
}

.terms-section + .terms-section {
    margin-top: 42px;
    padding-top: 42px;
    border-top: 1px solid var(--terms-border);
}

.section-number {
    margin-bottom: 8px;
    display: block;
    color: var(--terms-primary);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1px;
}

.terms-section > h2 {
    margin: 0 0 16px;
    color: var(--terms-heading);
    font-size: clamp(22px, 3vw, 29px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.terms-section > h3 {
    margin: 24px 0 9px;
    color: #1e293b;
    font-size: 14px;
    font-weight: 750;
}

.terms-section > p {
    margin: 0 0 15px;
    color: var(--terms-text);
    font-size: 12px;
    line-height: 1.85;
}

.terms-section > p:last-child {
    margin-bottom: 0;
}

/* Terms Lists */

.terms-section > ul {
    margin: 16px 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
}

.terms-section > ul li {
    position: relative;
    padding: 11px 13px 11px 39px;
    border: 1px solid #edf2f7;
    border-radius: 9px;
    background: #fafcff;
    color: #475569;
    font-size: 11px;
    line-height: 1.7;
}

.terms-section > ul li::before {
    position: absolute;
    top: 12px;
    left: 13px;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--terms-primary-light);
    color: var(--terms-primary);
    content: "✓";
    font-size: 8px;
    font-weight: 850;
}

/* =========================================================
   Definition List
   ========================================================= */

.definition-list {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.definition-list > div {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--terms-border);
    border-radius: 10px;
    background: #f8fafc;
    transition:
        border-color var(--terms-transition),
        background var(--terms-transition),
        transform var(--terms-transition);
}

.definition-list > div:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    transform: translateY(-2px);
}

.definition-list strong {
    display: block;
    color: var(--terms-primary-dark);
    font-size: 11px;
    font-weight: 750;
}

.definition-list p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 9px;
    line-height: 1.7;
}

/* =========================================================
   Notes and Warnings
   ========================================================= */

.terms-note,
.terms-warning {
    margin: 20px 0;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    border: 1px solid transparent;
    border-radius: 10px;
}

.terms-note {
    border-color: #bae6fd;
    background: #f0f9ff;
    color: #075985;
}

.terms-warning {
    border-color: #fde68a;
    background: var(--terms-warning-light);
    color: #92400e;
}

.terms-note > i,
.terms-warning > i {
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 15px;
}

.terms-note p,
.terms-warning p {
    margin: 0;
    color: inherit;
    font-size: 10px;
    line-height: 1.7;
}

/* =========================================================
   Terms Contact Card
   ========================================================= */

.terms-contact-card {
    margin-top: 20px;
    padding: 25px;
    overflow: hidden;
    border-radius: 14px;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(96, 165, 250, 0.24),
            transparent 32%
        ),
        linear-gradient(135deg, #0f172a, #172554);
    color: var(--terms-white);
}

.terms-contact-card > h3 {
    margin: 0;
    color: var(--terms-white);
    font-size: 17px;
    line-height: 1.4;
}

.terms-contact-card > span {
    margin-top: 2px;
    display: block;
    color: #93c5fd;
    font-size: 10px;
}

.terms-contact-list {
    margin-top: 21px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.terms-contact-list > div {
    min-width: 0;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.06);
}

.terms-contact-list > div > i {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: rgba(96, 165, 250, 0.15);
    color: #93c5fd;
    font-size: 11px;
}

.terms-contact-list p {
    min-width: 0;
    margin: 0;
}

.terms-contact-list small,
.terms-contact-list a,
.terms-contact-list p > span {
    display: block;
}

.terms-contact-list small {
    color: rgba(255, 255, 255, 0.55);
    font-size: 8px;
    text-transform: uppercase;
}

.terms-contact-list a,
.terms-contact-list p > span {
    margin-top: 2px;
    overflow-wrap: anywhere;
    color: var(--terms-white);
    font-size: 9px;
    font-weight: 650;
}

.terms-contact-list a:hover {
    color: #93c5fd;
}

/* =========================================================
   Terms Disclaimer
   ========================================================= */

.terms-disclaimer {
    margin-top: 42px;
    padding: 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
}

.terms-disclaimer > i {
    margin-top: 2px;
    flex-shrink: 0;
    color: var(--terms-primary);
    font-size: 16px;
}

.terms-disclaimer p {
    margin: 0;
    color: #64748b;
    font-size: 10px;
    line-height: 1.75;
}

/* =========================================================
   Terms CTA
   ========================================================= */

.terms-cta {
    padding: 0 0 85px;
    background: var(--terms-background);
}

.terms-cta-box {
    position: relative;
    padding: 38px 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    overflow: hidden;
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(96, 165, 250, 0.26),
            transparent 32%
        ),
        linear-gradient(135deg, #0f172a, #172554);
    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.15);
}

.terms-cta-box::after {
    position: absolute;
    right: -60px;
    bottom: -100px;
    width: 270px;
    height: 270px;
    border: 40px solid rgba(255, 255, 255, 0.035);
    border-radius: 50%;
    content: "";
}

.terms-cta-box > * {
    position: relative;
    z-index: 2;
}

.terms-cta-box > div:first-child {
    max-width: 680px;
}

.terms-cta-box span {
    color: #60a5fa;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.terms-cta-box h2 {
    margin: 5px 0 0;
    color: var(--terms-white);
    font-size: clamp(22px, 3vw, 31px);
    line-height: 1.35;
}

.terms-cta-actions {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.terms-cta-primary,
.terms-cta-secondary {
    min-height: 45px;
    padding: 11px 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    transition:
        background var(--terms-transition),
        border-color var(--terms-transition),
        transform var(--terms-transition);
}

.terms-cta-primary {
    background: var(--terms-primary);
    color: var(--terms-white);
}

.terms-cta-primary:hover {
    background: var(--terms-primary-dark);
    color: var(--terms-white);
    transform: translateY(-2px);
}

.terms-cta-secondary {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.07);
    color: var(--terms-white);
}

.terms-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--terms-white);
    transform: translateY(-2px);
}

/* =========================================================
   Reading Progress
   ========================================================= */

.terms-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 3px;
    background: transparent;
    pointer-events: none;
}

.terms-reading-progress span {
    width: 0;
    height: 100%;
    display: block;
    border-radius: 0 20px 20px 0;
    background: linear-gradient(
        90deg,
        #2563eb,
        #8b5cf6
    );
    transition: width 0.08s linear;
}

/* =========================================================
   Back to Top
   ========================================================= */

.terms-back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 11px;
    background: var(--terms-primary);
    color: var(--terms-white);
    font-size: 13px;
    box-shadow:
        0 10px 25px rgba(37, 99, 235, 0.28);
    cursor: pointer;
    visibility: hidden;
    opacity: 0;
    transform: translateY(12px);
    transition:
        visibility var(--terms-transition),
        opacity var(--terms-transition),
        transform var(--terms-transition),
        background var(--terms-transition);
}

.terms-back-to-top.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.terms-back-to-top:hover {
    background: var(--terms-primary-dark);
    transform: translateY(-2px);
}

/* =========================================================
   Initial Animation
   ========================================================= */

@keyframes termsFadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terms-hero-content {
    animation: termsFadeUp 0.7s ease both;
}

/* =========================================================
   Responsive: 1050px
   ========================================================= */

@media (max-width: 1050px) {
    .terms-layout {
        grid-template-columns:
            minmax(220px, 250px)
            minmax(0, 1fr);
        gap: 20px;
    }

    .terms-article {
        padding: 32px;
    }
}

/* =========================================================
   Responsive: 850px
   ========================================================= */

@media (max-width: 850px) {
    .terms-hero {
        padding: 85px 0 95px;
    }

    .terms-content-section {
        padding: 65px 0 75px;
    }

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

    .terms-sidebar {
        position: static;
    }

    .terms-navigation nav {
        max-height: none;
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 3px;
    }

    .terms-help-card {
        display: none;
    }

    .terms-cta-box {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   Responsive: 650px
   ========================================================= */

@media (max-width: 650px) {
    .terms-hero-content h1 {
        font-size: 40px;
        letter-spacing: -1px;
    }

    .terms-hero-content > p {
        font-size: 13px;
    }

    .terms-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .terms-navigation nav {
        grid-template-columns: 1fr;
    }

    .terms-article {
        padding: 24px 20px;
    }

    .terms-introduction {
        padding: 18px;
        flex-direction: column;
    }

    .definition-list,
    .terms-contact-list {
        grid-template-columns: 1fr;
    }

    .terms-cta-box {
        padding: 30px 25px;
    }

    .terms-cta-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .terms-cta-primary,
    .terms-cta-secondary {
        width: 100%;
    }
}

/* =========================================================
   Responsive: 450px
   ========================================================= */

@media (max-width: 450px) {
    .terms-hero {
        padding: 65px 0 78px;
    }

    .terms-hero-content h1 {
        font-size: 33px;
    }

    .terms-label {
        font-size: 9px;
    }

    .terms-content-section {
        padding: 45px 0 60px;
    }

    .terms-article {
        padding: 20px 15px;
        border-radius: 12px;
    }

    .terms-section + .terms-section {
        margin-top: 34px;
        padding-top: 34px;
    }

    .terms-section > h2 {
        font-size: 22px;
    }

    .terms-section > ul li {
        padding-right: 10px;
    }

    .terms-contact-card {
        padding: 20px 16px;
    }

    .terms-cta {
        padding-bottom: 60px;
    }

    .terms-cta-box {
        padding: 26px 20px;
        border-radius: 15px;
    }

    .terms-back-to-top {
        right: 14px;
        bottom: 14px;
        width: 40px;
        height: 40px;
    }
}

/* =========================================================
   Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   Print
   ========================================================= */

@media print {
    .terms-hero {
        padding: 25px 0;
        background: #ffffff;
        color: #000000;
    }

    .terms-hero-content h1,
    .terms-hero-content > p,
    .terms-breadcrumb,
    .terms-meta span {
        color: #000000;
    }

    .terms-sidebar,
    .terms-cta,
    .terms-reading-progress,
    .terms-back-to-top {
        display: none !important;
    }

    .terms-content-section {
        padding: 20px 0;
        background: #ffffff;
    }

    .terms-layout {
        display: block;
    }

    .terms-article {
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    .terms-section {
        break-inside: avoid;
    }
}