@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@300;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #0a66c2;
    --primary-dark: #084b91;
    --accent: #ffd166;
    --bg-dark: #07111f;
    --text: #0f172a;
    --text-soft: #475569;
    --white: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.96);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body#terms-page {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--white);
    background:
        linear-gradient(rgba(3, 10, 20, 0.72), rgba(3, 10, 20, 0.82)),
        url('../img/background2.png') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
}

.terms-wrapper {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

/* HERO */
.terms-hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px;
    background:
        radial-gradient(circle at top left, rgba(10, 102, 194, 0.28), transparent 35%),
        radial-gradient(circle at bottom right, rgba(255, 209, 102, 0.16), transparent 25%);
}

.terms-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7, 17, 31, 0.72), rgba(10, 102, 194, 0.22));
    pointer-events: none;
}

.terms-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.terms-hero-content h1 {
    margin: 0 0 18px;
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.terms-hero-text {
    margin: 0;
    max-width: 680px;
    font-size: 1.08rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.84);
}

.terms-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.highlight-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
}

.highlight-item i {
    color: var(--accent);
}

/* INFO CARD */
.terms-info-card {
    background: rgba(8, 17, 32, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    overflow: hidden;
}

.terms-info-card-header {
    display: flex;
    gap: 8px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
}

.terms-info-card-body {
    padding: 26px;
}

.terms-info-card-body h3 {
    margin: 0 0 22px;
    font-size: 1.4rem;
    color: #ffffff;
}

.info-row {
    margin-bottom: 18px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-row strong {
    display: block;
    margin-bottom: 6px;
    color: #ffffff;
}

.info-row p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

.info-row a {
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.info-row a:hover {
    color: var(--accent);
    border-bottom-color: rgba(255, 209, 102, 0.45);
}

/* CONTENT */
.terms-content-section {
    padding: 70px 0 80px;
}

.terms-content-card {
    background: var(--card-bg);
    color: var(--text);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.14);
    padding: 40px 34px;
}

.terms-header {
    margin-bottom: 30px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.terms-header h2 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1.15;
    color: #0f172a;
}

.terms-subtitle {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.98rem;
}

.terms-section {
    margin-bottom: 30px;
    padding: 24px 22px;
    background: rgba(10, 102, 194, 0.04);
    border: 1px solid rgba(10, 102, 194, 0.08);
    border-radius: var(--radius-lg);
}

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

.terms-section h3 {
    margin: 0 0 14px;
    font-size: 1.28rem;
    line-height: 1.35;
    color: #0f172a;
}

.terms-section p {
    margin: 0 0 14px;
    color: var(--text-soft);
    line-height: 1.8;
}

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

.terms-section ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-soft);
}

.terms-section li {
    margin-bottom: 10px;
    line-height: 1.8;
}

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

/* RESPONSIVE */
@media (max-width: 1100px) {
    .terms-hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .terms-hero {
        padding: 70px 0 50px;
    }

    .terms-wrapper {
        width: min(100% - 24px, 1200px);
    }

    .terms-highlights {
        flex-direction: column;
        align-items: stretch;
    }

    .terms-content-card,
    .terms-info-card,
    .terms-section {
        border-radius: 20px;
    }

    .terms-content-card {
        padding: 24px 20px;
    }

    .terms-info-card-body {
        padding: 20px;
    }

    .terms-section {
        padding: 20px 18px;
    }
}