/* ============================================
   Terms & Conditions - Stylesheet
   Matches login page (CompetencyConnect / EY theme)
   ============================================ */

:root {
    --white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.55);
    --font-family: 'Heebo', sans-serif;
    --font-heading: 'Lexend', 'Heebo', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: auto;
}

body {
    font-family: var(--font-family);
    font-weight: 400;
    line-height: 1.65;
    color: var(--white);
    background: #040508;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
}

a {
    color: #a855f7;
    text-decoration: underline;
    transition: color 0.2s ease;
}

a:hover {
    color: #c084fc;
}

/* --- Header --- */
.terms-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2.5rem;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 10;
}

.header-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.header-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--white);
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.header-right {
    display: flex;
    align-items: center;
}

.chat-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.chat-icon-wrapper:hover {
    transform: scale(1.05);
}

img[src$="TVS_Motor_logo.png"], .tvs-logo-img {
    height: 24px !important;
    width: auto !important;
    display: block !important;
    object-fit: contain;
}

/* --- Main layout --- */
.terms-page-main {
    flex: 1 1 auto;
    position: relative;
    padding: 2.5rem 1.5rem 4rem;
}

.bg-glow-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background-image: radial-gradient(circle at center, rgba(13, 17, 30, 0.25) 0%, rgba(4, 5, 8, 0.95) 100%), url('../images/login_page_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.22;
    mix-blend-mode: screen;
    will-change: transform, opacity;
}

.orb-1 {
    top: -15%;
    left: -15%;
    width: 65vw;
    height: 65vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, rgba(139, 92, 246, 0.08) 60%, transparent 100%);
    animation: float-slow 22s ease-in-out infinite alternate;
}

.orb-2 {
    top: 55%;
    right: -15%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.26) 0%, rgba(236, 72, 153, 0.08) 60%, transparent 100%);
    animation: float-slow 28s ease-in-out infinite alternate-reverse;
}

.orb-3 {
    top: auto;
    bottom: -15%;
    left: 15%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.22) 0%, rgba(59, 130, 246, 0.06) 60%, transparent 100%);
    animation: float-rotate 32s linear infinite;
}

.orb-4 {
    top: 15%;
    right: 15%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.16) 0%, rgba(239, 68, 68, 0.06) 60%, transparent 100%);
    animation: float-slow 25s ease-in-out infinite alternate;
    animation-delay: -4s;
}

@keyframes float-slow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(6%, -5%) scale(1.08);
    }
    100% {
        transform: translate(-4%, 6%) scale(0.96);
    }
}

@keyframes float-rotate {
    0% {
        transform: rotate(0deg) translate(4%, 0) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translate(4%, 0) rotate(-360deg);
    }
}

.terms-container {
    position: relative;
    z-index: 1;
    max-width: 920px;
    margin: 0 auto;
    background: rgba(10, 14, 26, 0.45);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 2.5rem 3rem;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 40px rgba(99, 102, 241, 0.03);
}

.terms-intro {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.terms-intro h2 {
    margin-top: 0;
    font-size: 1.5rem;
}

.terms-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.terms-meta strong {
    color: var(--white);
}

/* --- Typography --- */
h2 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--white);
}

h2:first-child {
    margin-top: 0;
}

p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.98rem;
    text-align: left;
}

ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

li {
    margin-bottom: 0.45rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.98rem;
}

.terms-footer-note {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.875rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .terms-header {
        padding: 1rem 1.25rem;
        min-height: auto;
    }

    .header-title {
        position: static;
        transform: none;
        font-size: 1.1rem;
        white-space: normal;
        text-align: center;
        flex: 1;
    }

    .logo-img {
        height: 28px;
    }

    img[src$="TVS_Motor_logo.png"], .tvs-logo-img {
        height: 20px !important;
    }

    .chat-icon-wrapper {
        width: auto;
        height: auto;
    }

    .terms-page-main {
        padding: 1.25rem 1rem 2rem;
    }

    .terms-container {
        padding: 1.5rem 1.25rem;
    }
}
