/* ====================================
   Klawfin Landing Page - Dark SaaS Theme
   ==================================== */

:root {
    /* Colors */
    --bg-dark: #0B0F19;
    --card-bg: #111827;
    --card-hover: #1F2937;
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --accent-red: #EF4444;
    --text-white: #F9FAFB;
    --text-grey: #9CA3AF;
    --border-color: #1F2937;
    --input-bg: #FFFFFF;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --container-max: 1100px;
    --section-padding: 60px 0;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --glow: 0 0 100px rgba(37, 99, 235, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-grey);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.container-sm {
    max-width: 800px;
}

.text-gradient {
    background: linear-gradient(90deg, #60A5FA, #93C5FD);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-block {
    width: 100%;
}

.btn.sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: transform 0.2s, background-color 0.2s;
}

.card:hover {
    background-color: var(--card-hover);
}

.section-title {
    color: var(--text-white);
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
}

.text-left {
    text-align: left;
}

.section-sub {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-sub.text-left {
    text-align: left;
    margin-left: 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-grey);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text-white);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 80px;
    text-align: center;
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.glow-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.12) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    color: #60A5FA;
    margin-bottom: 32px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #60A5FA;
    border-radius: 50%;
    box-shadow: 0 0 8px #60A5FA;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    color: var(--text-white);
    margin-bottom: 24px;
    font-weight: 700;
}

.hero-sub {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 64px;
}

.trust-indicators {
    display: flex;
    gap: 40px;
    justify-content: center;
    opacity: 0.7;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.trust-item svg {
    width: 18px;
    height: 18px;
}

/* Comparison Section */
.comparison {
    padding: var(--section-padding);
}

.problem-card .icon-box {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
}

.solution-card .icon-box {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.icon-box svg {
    width: 24px;
    height: 24px;
}

.card h3 {
    color: var(--text-white);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.card-visual {
    height: 120px;
    margin-top: 32px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Chaos Visual (Fragmented Files) */
.chaos-visual {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.05) 0%, rgba(31, 41, 55, 0.4) 100%);
    border: 1px solid rgba(239, 68, 68, 0.1);
}

.fragment-file {
    position: absolute;
    width: 32px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fragment-file.f1 {
    top: 30%;
    left: 20%;
    transform: rotate(-15deg);
    animation: float-1 4s ease-in-out infinite;
}

.fragment-file.f2 {
    bottom: 25%;
    right: 25%;
    transform: rotate(10deg);
    animation: float-2 5s ease-in-out infinite;
}

.fragment-file.f3 {
    top: 20%;
    right: 30%;
    width: 24px;
    height: 24px;
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transform: rotate(5deg);
    animation: float-3 6s ease-in-out infinite;
}

.file-line {
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    width: 100%;
    border-radius: 2px;
}

.file-line.half {
    width: 60%;
}

.warn-dot {
    color: #FCA5A5;
    font-weight: bold;
    font-size: 14px;
}

.fragment-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.3), transparent);
    width: 100px;
}

.fragment-line.l1 {
    top: 60%;
    left: 10%;
    transform: rotate(-30deg);
    opacity: 0.5;
}

.fragment-line.l2 {
    top: 40%;
    right: 10%;
    transform: rotate(45deg);
    opacity: 0.5;
}

@keyframes float-1 {

    0%,
    100% {
        transform: translateY(0) rotate(-15deg);
    }

    50% {
        transform: translateY(-8px) rotate(-12deg);
    }
}

@keyframes float-2 {

    0%,
    100% {
        transform: translateY(0) rotate(10deg);
    }

    50% {
        transform: translateY(-5px) rotate(15deg);
    }
}

@keyframes float-3 {

    0%,
    100% {
        transform: translateY(0) rotate(5deg);
    }

    50% {
        transform: translateY(-10px) rotate(0deg);
    }
}


/* Structure Visual (Unified Dashboard) */
.structure-visual {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.05) 0%, rgba(31, 41, 55, 0.4) 100%);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.dashboard-ui {
    width: 160px;
    background: #1F2937;
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: translateY(10px);
}

.ui-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.ui-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #374151;
}

.ui-line {
    height: 4px;
    width: 60px;
    background: #374151;
    border-radius: 2px;
}

.ui-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ui-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ui-bar {
    height: 4px;
    background: #374151;
    border-radius: 2px;
}

.ui-status {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.ui-status.success {
    background: #10B981;
    box-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
}

.ui-graph {
    margin-top: 4px;
    opacity: 0.8;
}

.sync-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
    border: 2px solid var(--card-bg);
    animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
    animation-delay: 0.2s;
}

.sync-badge svg {
    width: 16px;
    height: 16px;
}

@keyframes pop-in {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Team Section */
.team {
    padding: var(--section-padding);
}

.horizontal-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.avatar-wrapper img {
    width: 130px;
    height: 130px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.team-info h3 {
    margin-bottom: 4px;
    font-size: 1.5rem;
}

.team-info .role {
    display: block;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 500;
}

.team-info p {
    font-size: 1rem;
    margin-bottom: 16px;
    line-height: 1.7;
}

.social-link {
    color: var(--text-grey);
    transition: color 0.2s;
}

.social-link:hover {
    color: var(--text-white);
}

/* Enroll Section */
.enroll-section {
    padding: var(--section-padding);
}

.enroll-card {
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.05) 0%, var(--card-bg) 50%);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.enroll-header {
    text-align: center;
    margin-bottom: 32px;
}

.enroll-header h2 {
    color: var(--text-white);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-white);
}

input {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 6px;
    color: #111827;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    width: 100%;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

.phone-input-unified {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    height: 48px;
    transition: all 0.2s ease;
    overflow: hidden;
}

.phone-input-unified:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.select-wrapper {
    position: relative;
    height: 100%;
}

.unified-select {
    height: 100%;
    background: transparent;
    border: none;
    color: #111827;
    font-size: 0.95rem;
    padding: 0 32px 0 12px;
    /* Space for arrow */
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Custom Arrow */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(0,0,0,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
}

.unified-select:focus {
    outline: none;
}

.input-divider {
    width: 1px;
    height: 24px;
    background: rgba(0, 0, 0, 0.15);
    margin: 0 4px;
}

.phone-input-unified input {
    flex: 1;
    background: transparent;
    border: none;
    height: 100%;
    color: #111827;
    padding: 0 12px;
    font-size: 0.95rem;
}

.phone-input-unified input:focus {
    box-shadow: none;
    outline: none;
}

/* Enhanced Footer Styles */
.footer {
    padding: 100px 0 60px;
    /* Increased padding */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Center align items */
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Moved border to container */
}

.footer-brand img {
    height: 32px;
    /* Increased logo size */
    width: auto;
    display: block;
    margin-bottom: 24px;
}

.footer-left p {
    font-size: 1.1rem;
    /* Increased text size */
    color: var(--text-grey);
    line-height: 1.6;
    max-width: 360px;
}

.footer-right {
    display: flex;
    gap: 40px;
    /* Increased gap */
    align-items: center;
}

.footer-right a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    /* Increased link size */
    color: var(--text-grey);
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}

.footer-right a:hover {
    color: var(--text-white);
    transform: translateY(-2px);
    /* Subtle lift */
}

.footer-bottom {
    border-top: none;
    /* Removed old border */
    margin-top: 40px;
    padding-top: 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

.toggle-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 8px;
}

.toggle-container input[type="radio"] {
    display: none;
}

.toggle-btn {
    text-align: center;
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    color: var(--text-grey);
    border: 2px solid transparent;
    background: transparent;
}

.toggle-btn:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

input[type="radio"]:checked+.toggle-btn {
    background: var(--card-bg);
    color: var(--text-white);
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.3);
    transform: scale(1.02);
}

.form-footer {
    text-align: center;
    font-size: 0.75rem;
    margin-top: 16px;
    opacity: 0.6;
}

.form-footer a {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.2s;
}

.form-footer a:hover {
    color: #60A5FA;
}

/* Required field legend */
.required-legend {
    font-size: 0.8rem;
    color: var(--text-grey);
    margin-bottom: 16px;
    text-align: left;
}

.required-asterisk {
    color: var(--accent-red);
    font-weight: 600;
}

.optional-label {
    color: var(--text-grey);
    font-weight: 400;
    font-size: 0.85em;
}

/* Form error messages */
.form-error {
    display: block;
    font-size: 0.75rem;
    color: var(--accent-red);
    margin-top: 4px;
    min-height: 1em;
}

.form-group input.error,
.form-group .phone-input-unified.error {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Form submission error banner */
.form-submission-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

/* Role fieldset styling */
.role-fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.role-fieldset legend {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-white);
    margin-bottom: 8px;
    display: block;
}

/* Footer */
.footer {
    padding: 60px 0 24px;
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
    background: var(--bg-dark);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-left p {
    font-size: 0.85rem;
    margin-top: 8px;
}

.footer-right {
    display: flex;
    gap: 24px;
}

.footer-right a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.footer-bottom {
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.4;
}

/* Responsive & Footer Adjustments */

/* Footer Specifics */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 300px;
}

.footer-right {
    display: flex;
    gap: 24px;
    align-items: center;
}

.footer-right a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-grey);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-right a:hover {
    color: var(--text-white);
}

.footer-brand img {
    height: 24px;
    width: auto;
    display: block;
}

/* Footer Navigation */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav h4 {
    color: var(--text-white);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav li a {
    color: var(--text-grey);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav li a:hover {
    color: var(--text-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
    padding-top: 32px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Tablet (iPad / Small Desktop) */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    .hero-headline {
        font-size: 3.5rem;
    }

    .grid-2 {
        gap: 24px;
    }
}

/* Mobile (Phones like iPhone 17 Pro / Samsung S25) */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 0;
    }

    .nav-links {
        display: none;
        /* Consider a hamburger menu for a full implementation later */
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-headline {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .trust-indicators {
        flex-wrap: wrap;
        gap: 20px;
        margin-top: 32px;
    }

    .grid-2,
    .form-grid {
        grid-template-columns: 1fr;
    }

    /* Stack horizontal cards on mobile */
    .horizontal-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px;
    }

    .avatar-wrapper img {
        width: 140px;
        height: 140px;
        margin-bottom: 16px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 32px;
    }

    .footer-left {
        align-items: center;
    }

    .footer-right {
        flex-direction: column;
        gap: 16px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-headline {
        font-size: 2rem;
    }

    .card {
        padding: 24px;
    }

    .toggle-container {
        grid-template-columns: 1fr;
        /* Stack toggle buttons if too narrow */
    }
}

/* Success Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 360px;
    text-align: center;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #111827;
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: #EBF5FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #2563EB;
}

.modal-card h3 {
    color: #111827;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-card p {
    color: #6B7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

.modal-card .btn-block {
    width: 100%;
    justify-content: center;
}

/* Legal Pages (Terms & Privacy) */
.legal-content {
    padding: 140px 0 80px;
    min-height: 60vh;
}

.legal-content h1 {
    color: var(--text-white);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.legal-content .last-updated {
    color: var(--text-grey);
    font-size: 0.9rem;
    margin-bottom: 48px;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    color: var(--text-white);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.legal-section p {
    color: var(--text-grey);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.legal-section ul li {
    color: var(--text-grey);
    font-size: 1rem;
    line-height: 1.7;
    padding-left: 24px;
    position: relative;
    margin-bottom: 8px;
}

.legal-section ul li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.legal-section a {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.2s;
}

.legal-section a:hover {
    color: #60A5FA;
}