/* ================================================
   CARESLATE - Nocturnal Medical Precision Theme
   A sophisticated, dark-themed medical app promo
   ================================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* CSS Variables */
:root {
    /* Primary Palette */
    --bg-deep: #131b3f;
    --bg-surface: #1a2347;
    --bg-elevated: #212b52;
    --bg-card: rgba(33, 43, 82, 0.6);

    /* Accent Colors */
    --accent-cyan: #00d4aa;
    --accent-cyan-glow: rgba(0, 212, 170, 0.3);
    --accent-amber: #f5a623;
    --accent-amber-soft: rgba(245, 166, 35, 0.15);
    --accent-purple: #8b7cf6;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --text-muted: rgba(255, 255, 255, 0.35);

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.1);

    /* Shadows */
    --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow-cyan: 0 0 60px rgba(0, 212, 170, 0.15);
    --shadow-glow-amber: 0 0 60px rgba(245, 166, 35, 0.1);

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1280px;

    /* Transitions */
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text-secondary);
    background: var(--bg-deep);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Noise Texture Overlay */
.landing-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.35rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Landing Page */
.landing-page {
    width: 100%;
    position: relative;
}

/* ================================
   HERO SECTION
   ================================ */
.hero-section {
    min-height: 100vh;
    padding: 80px 0 var(--section-padding);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Ambient Background Glow */
.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 70%;
    height: 120%;
    background: radial-gradient(ellipse, var(--accent-cyan-glow) 0%, transparent 60%);
    pointer-events: none;
    animation: ambientPulse 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 80%;
    background: radial-gradient(ellipse, var(--accent-amber-soft) 0%, transparent 50%);
    pointer-events: none;
    animation: ambientPulse 10s ease-in-out infinite reverse;
}

@keyframes ambientPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeSlideUp 1s var(--transition-smooth) forwards;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo {
    margin-bottom: 2.5rem;
}

.hero-logo img {
    max-width: 420px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(0, 212, 170, 0.2));
}

.hero-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem !important;
    font-weight: 500;
    color: var(--text-primary) !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.4;
}

.hero-subtitle::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-amber));
    margin-right: 16px;
    vertical-align: middle;
    border-radius: 2px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary) !important;
    max-width: 540px;
    margin-bottom: 2.5rem !important;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 0 !important;
}

/* Download Button */
.download-button {
    display: inline-flex;
    align-items: center;
    transition: all 0.4s var(--transition-smooth);
    position: relative;
}

.download-button::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-amber));
    border-radius: 14px;
    opacity: 0;
    transition: opacity 0.4s var(--transition-smooth);
    z-index: -1;
    filter: blur(12px);
}

.download-button:hover {
    transform: translateY(-4px) scale(1.02);
}

.download-button:hover::before {
    opacity: 0.5;
}

.download-svg {
    height: 70px;
    width: auto;
    border-radius: 10px;
}

/* Hero Phone */
.hero-phone {
    position: relative;
    display: flex;
    justify-content: center;
    animation: fadeSlideUp 1s var(--transition-smooth) 0.2s forwards;
    opacity: 0;
}

.hero-phone .phone-image-container {
    position: relative;
    width: auto;
    height: auto;
}

.hero-phone video {
    width: 320px !important;
    max-width: 320px !important;
    height: auto !important;
    border-radius: 40px !important;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px var(--glass-border),
        var(--shadow-glow-cyan);
    border: 1px solid var(--glass-highlight);
}

/* ================================
   FEATURES SECTION
   ================================ */
.features-section {
    padding: var(--section-padding) 0;
    position: relative;
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 100%);
}

.features-section h2 {
    text-align: center;
    margin-bottom: 0.75rem;
}

.features-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-tertiary);
    margin-bottom: 4rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 36px 28px;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--transition-smooth);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-highlight), transparent);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow-cyan);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    display: inline-block;
    filter: grayscale(0.2);
}

.feature-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-tertiary);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ================================
   LANGUAGE SECTION
   ================================ */
.language-section {
    padding: var(--section-padding) 0;
    position: relative;
    background: var(--bg-surface);
    overflow: hidden;
}

.language-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10%;
    width: 40%;
    height: 150%;
    transform: translateY(-50%);
    background: radial-gradient(ellipse, var(--accent-cyan-glow) 0%, transparent 60%);
    pointer-events: none;
}

.language-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.language-text h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.language-text > p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.language-features {
    list-style: none;
}

.language-features li {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-features li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: var(--bg-deep);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Phone Image Container */
.phone-image-container {
    position: relative;
    width: 300px;
    height: 620px;
    margin: 0 auto;
}

.phone-screenshot {
    width: 100%;
    height: 100%;
    border-radius: 44px;
    object-fit: cover;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.5),
        var(--shadow-glow-cyan);
    border: 1px solid var(--glass-border);
}

.phone-frame {
    display: none;
}

.phone-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-deep) 100%);
    border-radius: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
}

.placeholder-content {
    text-align: center;
    padding: 2rem;
}

.placeholder-content h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.placeholder-content p {
    color: var(--text-tertiary);
}

.placeholder-content strong {
    color: var(--accent-cyan);
}

.placeholder-content small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ================================
   PRICING SECTION
   ================================ */
.pricing-section {
    padding: var(--section-padding) 0;
    background: var(--bg-deep);
    position: relative;
}

.pricing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.pricing-section h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 4rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 44px 32px;
    text-align: center;
    position: relative;
    transition: all 0.5s var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
}

.pricing-card.popular {
    border-color: var(--accent-cyan);
    background: linear-gradient(180deg, rgba(0, 212, 170, 0.08) 0%, var(--glass-bg) 100%);
    transform: scale(1);
    box-shadow: var(--shadow-glow-cyan);
}

.pricing-card.popular:hover {
    transform: translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: var(--bg-deep);
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pricing-card h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.price {
    margin-bottom: 2rem;
}

.amount {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.period {
    color: var(--text-tertiary);
    font-size: 1rem;
    display: block;
    margin-top: 0.5rem;
}

.pricing-card .features {
    list-style: none;
    text-align: left;
    margin-bottom: 0;
    flex-grow: 1;
}

.pricing-card .features li {
    color: var(--text-secondary);
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pricing-card .features li::before {
    content: '✓';
    color: var(--accent-cyan);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ================================
   DOCUMENT SECTION
   ================================ */
.document-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
    position: relative;
    overflow: hidden;
}

.document-section::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -15%;
    width: 45%;
    height: 150%;
    transform: translateY(-50%);
    background: radial-gradient(ellipse, var(--accent-amber-soft) 0%, transparent 50%);
    pointer-events: none;
}

.document-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.document-text h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.document-text > p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.document-features {
    list-style: none;
}

.document-features li {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.05rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.document-features li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent-amber), #ff8a50);
    color: var(--bg-deep);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.document-phone .phone-screenshot {
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.5),
        var(--shadow-glow-amber);
}

/* ================================
   LOGO SECTION
   ================================ */
.logo-section {
    padding: 80px 0;
    background: var(--bg-deep);
    text-align: center;
    position: relative;
}

.logo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.logo-content {
    max-width: 600px;
    margin: 0 auto;
}

.aneslate-logo {
    margin-bottom: 1.5rem;
}

.aneslate-logo img {
    max-width: 160px;
    height: auto;
    opacity: 0.9;
}

.logo-content p {
    color: var(--text-tertiary);
    font-size: 1rem;
}

.logo-content strong {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* ================================
   CTA SECTION
   ================================ */
.cta-section {
    padding: var(--section-padding) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 100%);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, var(--accent-cyan-glow) 0%, transparent 50%);
    pointer-events: none;
}

.cta-section h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 2.5rem 0 1.5rem;
    position: relative;
    z-index: 1;
}

.cta-note {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* ================================
   FOOTER
   ================================ */
.footer {
    background: var(--bg-deep);
    color: var(--text-secondary);
    padding: 60px 0 30px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section p {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.3s var(--transition-smooth);
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero-content,
    .language-content,
    .document-content {
        gap: 60px;
    }

    .features-grid,
    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .container {
        padding: 0 20px;
    }

    .hero-section {
        padding-top: 60px;
    }

    .hero-content,
    .language-content,
    .document-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-text {
        order: 1;
    }

    .hero-phone {
        order: 2;
    }

    .hero-logo img {
        max-width: 320px;
    }

    .hero-subtitle::before {
        display: none;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-phone video {
        width: 280px !important;
        max-width: 280px !important;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        text-align: center;
    }

    .language-text,
    .document-text {
        text-align: center;
    }

    .language-features,
    .document-features {
        display: inline-block;
        text-align: left;
    }

    .language-phone {
        order: 2;
    }

    .document-phone {
        order: 1;
    }

    .document-text {
        order: 2;
    }

    .phone-image-container {
        width: 260px;
        height: 540px;
    }

    .phone-screenshot {
        border-radius: 38px;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-card.popular {
        transform: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-logo img {
        max-width: 260px;
    }

    .hero-subtitle {
        font-size: 1.25rem !important;
    }

    .hero-phone video {
        width: 240px !important;
        max-width: 240px !important;
        border-radius: 32px !important;
    }

    .phone-image-container {
        width: 220px;
        height: 460px;
    }

    .phone-screenshot {
        border-radius: 32px;
    }

    .feature-card,
    .pricing-card {
        padding: 28px 24px;
    }

    .amount {
        font-size: 2.75rem;
    }

    .download-svg {
        height: 56px;
    }
}

/* ================================
   LEGAL PAGES
   ================================ */
.legal-page {
    background: var(--bg-deep);
    min-height: 100vh;
    padding: 60px 0;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.legal-header h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.last-updated {
    color: var(--text-tertiary);
    font-size: 1rem;
    font-style: italic;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    color: var(--text-primary);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
}

.legal-section h3 {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin: 2rem 0 1rem;
}

.legal-section p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.legal-section ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.legal-section li {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.contact-info {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.contact-info p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.legal-footer {
    max-width: 800px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.back-link,
.related-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s var(--transition-smooth);
}

.back-link:hover,
.related-link:hover {
    color: var(--accent-amber);
}

.legal-footer p {
    margin: 0.5rem 0;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 40px 0;
    }

    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-content {
        padding: 0 20px;
    }

    .legal-section h2 {
        font-size: 1.4rem;
    }

    .contact-info {
        padding: 1.5rem;
    }
}

/* ================================
   UTILITY CLASSES
   ================================ */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--accent-cyan);
}

.invalid {
    outline: 1px solid #e74c3c;
}

.validation-message {
    color: #e74c3c;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    border-radius: 8px;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.darker-border-checkbox.form-check-input {
    border-color: var(--glass-border);
}
