/*
 * Y'all Call — Terms Page Theme
 * Drop-in CSS to match the main yallcall.app dark theme.
 * 
 * USAGE:
 *   1. Replace the existing <style>...</style> block in the terms PHP page
 *      with: <link rel="stylesheet" href="terms-theme.css">
 *      (or paste this entire file inside <style> tags)
 *   2. Add the Google Fonts link in <head>:
 *      <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
 *   3. No HTML structure changes needed — classes already match.
 *
 * Last updated: 2026-02-17
 */

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00a8ff;
    --primary-dark: #0077b6;
    --cyan: #00e5ff;
    --text: #f8f9fa;
    --text-muted: #adb5bd;
    --text-light: #dee2e6;
    --bg: #0b1120;
    --bg-dark: #050914;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
    --radius: 0.75rem;
    --radius-lg: 1.5rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 50%, rgba(0, 168, 255, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(114, 9, 183, 0.08), transparent 25%);
    z-index: -10;
    pointer-events: none;
}

/* ===== Container ===== */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== Header / Logo ===== */
.header-logo {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

.header-logo img {
    max-width: 220px;
    height: auto;
    filter: brightness(1.1);
}

.header-logo h1 {
    color: var(--text);
    font-size: 28px;
    margin-top: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ===== Step Indicators ===== */
.step-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    gap: 10px;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.step.active {
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    color: #000;
    border-color: transparent;
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.3);
}

/* ===== Content Card ===== */
.content-card {
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.8), rgba(8, 12, 21, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 40px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.3), transparent);
    pointer-events: none;
}

.page-title {
    color: var(--text);
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.step-label {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.intro-text {
    background: rgba(0, 168, 255, 0.08);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    border-left: 4px solid var(--primary);
    font-size: 15px;
    color: var(--text-light);
}

/* ===== Terms Content ===== */
.terms-section {
    margin-bottom: 30px;
}

.terms-section h2 {
    color: var(--text);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.terms-scroll {
    max-height: 450px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.terms-scroll p {
    margin-bottom: 20px;
    text-align: justify;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
}

.terms-scroll p b {
    color: var(--text);
    font-weight: 600;
}

/* Custom scrollbar */
.terms-scroll::-webkit-scrollbar {
    width: 8px;
}

.terms-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.terms-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.terms-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--cyan);
}

/* ===== Buttons ===== */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    flex: 1;
    min-width: 200px;
    padding: 16px 30px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 168, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.btn-accept {
    background: linear-gradient(135deg, #27ae60, #219a52);
    color: #fff;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.25);
}

.btn-accept:hover {
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
    transform: translateY(-2px);
}

.btn-decline {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-decline:hover {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.3);
    transform: translateY(-2px);
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.privacy-note {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

/* ===== Responsive ===== */
@media screen and (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .content-card {
        padding: 25px;
    }

    .page-title {
        font-size: 22px;
    }

    .step {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        min-width: 100%;
    }

    .terms-scroll {
        max-height: 350px;
    }
}

@media screen and (max-width: 480px) {
    .header-logo h1 {
        font-size: 24px;
    }

    .content-card {
        padding: 20px;
    }

    .page-title {
        font-size: 20px;
    }

    .step-indicators {
        gap: 8px;
    }

    .step {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .terms-scroll {
        padding: 15px;
        max-height: 300px;
    }

    .btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}
