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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Homepage (index.html) - app-style layout */
.landing-body {
    margin: 0;
    color: #e2e8f0;
    background: radial-gradient(circle at 18% 8%, #3947b0 0%, #111735 44%, #090d1f 100%);
}

.landing-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 22px;
}

.landing-brand-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0 8px;
    margin-bottom: 8px;
}

.landing-logo-center {
    display: flex;
    justify-content: center;
}

.landing-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.landing-logo-hero {
    width: 120px;
    height: 120px;
    border-radius: 28px;
}

.landing-main {
    display: grid;
    gap: 26px;
}

.landing-hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    align-items: center;
}

.landing-eyebrow {
    margin: 0 0 10px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: #a5b4fc;
}

.landing-title {
    margin: 0;
    font-size: clamp(2.15rem, 5.5vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #ffffff;
    max-width: 640px;
}

.landing-tagline {
    margin: 14px 0 0;
    max-width: 560px;
    color: #cbd5e1;
    font-size: 1.1rem;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.landing-app-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    color: #f8fafc;
    background: linear-gradient(130deg, #7c3aed, #2563eb);
    border: 1px solid transparent;
}

.landing-app-button.secondary {
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(148, 163, 184, 0.45);
    color: #f1f5f9;
}

.landing-app-button.ios {
    background: linear-gradient(130deg, #7c3aed 0%, #94a3b8 100%);
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: #f8fafc;
}

.landing-app-button.android {
    background: linear-gradient(130deg, #7c3aed 0%, #22c55e 100%);
    border: 1px solid rgba(34, 197, 94, 0.45);
    color: #f8fafc;
}

.landing-app-button:hover {
    transform: translateY(-1px);
}

.landing-quick-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
    max-width: 620px;
}

.landing-stat {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.4);
}

.landing-stat strong {
    display: block;
    color: #ffffff;
    font-size: 1.05rem;
}

.landing-stat span {
    font-size: 0.85rem;
    color: #94a3b8;
}

.landing-phone-shell {
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 34px;
    padding: 10px;
    background: linear-gradient(160deg, #0b1026, #090d1c);
    box-shadow: 0 30px 60px rgba(2, 6, 23, 0.55);
    max-width: 340px;
    margin: 0 auto;
}

.landing-phone-notch {
    width: 40%;
    height: 20px;
    border-radius: 999px;
    margin: 2px auto 10px;
    background: rgba(148, 163, 184, 0.35);
}

.landing-phone-content {
    border-radius: 24px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.landing-phone-title {
    margin: 0 0 12px;
    font-size: 0.95rem;
    color: #f8fafc;
    font-weight: 600;
}

.landing-option-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 8px;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.75);
    font-size: 0.9rem;
}

.landing-option-row.selected {
    background: rgba(37, 99, 235, 0.28);
    border: 1px solid rgba(96, 165, 250, 0.45);
}

.landing-option-row strong {
    color: #f8fafc;
}

.landing-presence {
    margin: 10px 0 12px;
    font-size: 0.82rem;
    color: #94a3b8;
}

.landing-presence .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.landing-presence .dot.ok {
    background: #22c55e;
}

.landing-confirm-btn {
    width: 100%;
    min-height: 40px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(130deg, #7c3aed, #2563eb);
}

.landing-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.landing-step-card {
    border-radius: 16px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.58);
}

.landing-step-card p {
    margin: 0 0 8px;
    color: #a5b4fc;
    font-weight: 700;
}

.landing-step-card h3 {
    margin: 0;
    color: #f8fafc;
    font-size: 1.05rem;
}

.landing-step-card span {
    display: block;
    margin-top: 7px;
    color: #94a3b8;
    font-size: 0.92rem;
}

.landing-bottom-cta {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 20px;
    padding: 24px;
    background: linear-gradient(150deg, rgba(15, 23, 42, 0.75), rgba(30, 27, 75, 0.7));
}

.landing-bottom-cta h2 {
    margin: 0;
    color: #ffffff;
}

.landing-bottom-cta p {
    margin: 8px 0 0;
    color: #cbd5e1;
}

.landing-footer {
    text-align: center;
    padding: 28px 0 4px;
    color: #94a3b8;
}

.landing-footer .privacy-link {
    color: #cbd5e1;
}

body.dark-mode.landing-body {
    background: radial-gradient(circle at 18% 8%, #263084 0%, #0d1331 44%, #070a18 100%);
}

/* Homepage — light theme (no .dark-mode on body) */
body.landing-body:not(.dark-mode) {
    color: #0f172a;
    background: radial-gradient(circle at 18% 8%, #e8eafe 0%, #f8fafc 45%, #eef2ff 100%);
}

body.landing-body:not(.dark-mode) .landing-eyebrow {
    color: #4f46e5;
}

body.landing-body:not(.dark-mode) .landing-title {
    color: #0f172a;
}

body.landing-body:not(.dark-mode) .landing-tagline {
    color: #475569;
}

body.landing-body:not(.dark-mode) .landing-app-button {
    color: #ffffff;
    background: linear-gradient(130deg, #6d28d9, #2563eb);
    border-color: transparent;
}

body.landing-body:not(.dark-mode) .landing-app-button.secondary {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(15, 23, 42, 0.12);
    color: #1e293b;
}

body.landing-body:not(.dark-mode) .landing-app-button.ios {
    background: linear-gradient(130deg, #6d28d9 0%, #64748b 100%);
    border-color: rgba(15, 23, 42, 0.12);
    color: #ffffff;
}

body.landing-body:not(.dark-mode) .landing-app-button.android {
    background: linear-gradient(130deg, #6d28d9 0%, #16a34a 100%);
    border-color: rgba(22, 163, 74, 0.35);
    color: #ffffff;
}

body.landing-body:not(.dark-mode) .landing-stat {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(15, 23, 42, 0.1);
}

body.landing-body:not(.dark-mode) .landing-stat strong {
    color: #0f172a;
}

body.landing-body:not(.dark-mode) .landing-stat span {
    color: #64748b;
}

body.landing-body:not(.dark-mode) .landing-phone-shell {
    background: linear-gradient(160deg, #ffffff, #f1f5f9);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.1);
}

body.landing-body:not(.dark-mode) .landing-phone-notch {
    background: rgba(15, 23, 42, 0.15);
}

body.landing-body:not(.dark-mode) .landing-phone-content {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(15, 23, 42, 0.1);
}

body.landing-body:not(.dark-mode) .landing-phone-title {
    color: #0f172a;
}

body.landing-body:not(.dark-mode) .landing-option-row {
    color: #334155;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

body.landing-body:not(.dark-mode) .landing-option-row.selected {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.4);
}

body.landing-body:not(.dark-mode) .landing-option-row strong {
    color: #0f172a;
}

body.landing-body:not(.dark-mode) .landing-presence {
    color: #64748b;
}

body.landing-body:not(.dark-mode) .landing-confirm-btn {
    color: #ffffff;
    background: linear-gradient(130deg, #6d28d9, #2563eb);
}

body.landing-body:not(.dark-mode) .landing-step-card {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(15, 23, 42, 0.1);
}

body.landing-body:not(.dark-mode) .landing-step-card p {
    color: #4f46e5;
}

body.landing-body:not(.dark-mode) .landing-step-card h3 {
    color: #0f172a;
}

body.landing-body:not(.dark-mode) .landing-step-card span {
    color: #64748b;
}

body.landing-body:not(.dark-mode) .landing-bottom-cta {
    background: linear-gradient(150deg, rgba(224, 231, 255, 0.75), rgba(255, 255, 255, 0.95));
    border-color: rgba(99, 102, 241, 0.22);
}

body.landing-body:not(.dark-mode) .landing-bottom-cta h2 {
    color: #0f172a;
}

body.landing-body:not(.dark-mode) .landing-bottom-cta p {
    color: #475569;
}

body.landing-body:not(.dark-mode) .landing-footer {
    color: #64748b;
}

body.landing-body:not(.dark-mode) .landing-footer .privacy-link {
    color: #4f46e5;
}

body.landing-body:not(.dark-mode) .landing-footer .privacy-link:hover {
    color: #6366f1;
}

@media (max-width: 960px) {
    .landing-hero {
        grid-template-columns: 1fr;
    }

    .landing-quick-stats,
    .landing-steps {
        grid-template-columns: 1fr;
    }

    .landing-logo-hero {
        width: 96px;
        height: 96px;
        border-radius: 22px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 20px;
    color: white;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.logo {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.title {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.tagline {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 300;
}

main {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    margin: 40px 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero {
    text-align: center;
    margin-bottom: 60px;
}

.hero-content h2 {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 20px;
    font-weight: 700;
}

.description {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 60px 0;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #667eea;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    font-size: 1rem;
}

.cta {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
    margin-top: 60px;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

footer {
    text-align: center;
    padding: 30px 20px;
    color: white;
    opacity: 0.9;
}

footer p {
    margin: 10px 0;
}

.privacy-link {
    color: white;
    text-decoration: underline;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.privacy-link:hover {
    opacity: 1;
}

.coming-soon {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .description {
        font-size: 1rem;
    }

    main {
        padding: 40px 20px;
    }

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

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .logo-container {
        flex-direction: column;
        gap: 10px;
    }
}

/* Dark Mode Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Dark Mode Styles */
body.dark-mode {
    background: #0a0e27;
}

body.dark-mode main {
    background: #1a1f3a;
    color: #e2e8f0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Remove transitions for theme switching - instant change */
body,
body main,
body .hero-content h2,
body .description,
body .feature-card,
body .feature-card h3,
body .feature-card p,
body .cta,
body .btn-primary,
body .privacy-content h1,
body .privacy-content h2,
body .privacy-content h3,
body .privacy-content p,
body .privacy-content li,
body .privacy-content .effective-date,
body .privacy-content a,
body .privacy-content .back-link,
body .privacy-content strong,
body .terms-content h1,
body .terms-content h2,
body .terms-content h3,
body .terms-content p,
body .terms-content li,
body .terms-content .effective-date,
body .terms-content a,
body .terms-content .back-link,
body .terms-content strong,
body .back-link,
body .quote-section,
body .quote-section p {
    transition: none !important;
}

body.dark-mode .hero-content h2 {
    color: #a78bfa;
}

body.dark-mode .description {
    color: #cbd5e1;
}

body.dark-mode .feature-card {
    background: #0f172a;
    border: 1px solid rgba(147, 51, 234, 0.2);
}

body.dark-mode .feature-card h3 {
    color: #a78bfa;
}

body.dark-mode .feature-card p {
    color: #94a3b8;
}

body.dark-mode .cta {
    background: linear-gradient(135deg, #6b21a8 0%, #1e40af 100%);
}

body.dark-mode .btn-primary {
    color: #0a0e27;
}

body.dark-mode .privacy-content h1,
body.dark-mode .privacy-content h2,
body.dark-mode .terms-content h1,
body.dark-mode .terms-content h2 {
    color: #a78bfa;
}

body.dark-mode .privacy-content h3,
body.dark-mode .terms-content h3 {
    color: #e2e8f0;
}

body.dark-mode .privacy-content p,
body.dark-mode .privacy-content li,
body.dark-mode .terms-content p,
body.dark-mode .terms-content li {
    color: #e2e8f0;
}

body.dark-mode .privacy-content .effective-date,
body.dark-mode .terms-content .effective-date {
    color: #cbd5e1;
}

body.dark-mode .privacy-content a,
body.dark-mode .privacy-content .back-link,
body.dark-mode .terms-content a,
body.dark-mode .terms-content .back-link {
    color: #a78bfa;
}

body.dark-mode .privacy-content a:hover,
body.dark-mode .terms-content a:hover {
    color: #c4b5fd;
}

body.dark-mode .privacy-content strong,
body.dark-mode .terms-content strong {
    color: #e2e8f0;
}

body.dark-mode .back-link {
    color: #a78bfa;
}

body.dark-mode .quote-section {
    background: #0f172a !important;
    border: 1px solid rgba(147, 51, 234, 0.2) !important;
}

body.dark-mode .quote-section p {
    color: #e2e8f0 !important;
}

/* Language selector - Floating Bubbles (shared across pages) */
.language-toggle {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}

.language-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.language-toggle:active {
    transform: scale(0.95);
}

.language-bubbles-container {
    position: fixed;
    bottom: 180px;
    right: 30px;
    display: grid;
    grid-template-columns: repeat(3, 40px);
    gap: 12px;
    justify-items: center;
    align-items: center;
    z-index: 999;
    pointer-events: none;
    max-height: calc(100vh - 250px);
    overflow: hidden;
    padding: 10px;
    margin: 0;
}

.language-bubbles-container.open {
    pointer-events: all;
    overflow-y: auto;
}

.language-bubbles-container.animating {
    pointer-events: none;
    overflow: hidden !important;
}

.language-bubbles-container::-webkit-scrollbar {
    width: 4px;
}

.language-bubbles-container::-webkit-scrollbar-track {
    background: transparent;
}

.language-bubbles-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.language-bubble {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    opacity: 0;
    transform: scale(0);
    padding: 0;
    margin: 0;
    line-height: 1;
    flex-shrink: 0;
    overflow: hidden;
}

.language-bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.dark-mode .language-bubble {
    border-color: #1a1f3a;
}

.language-bubble:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: #fff;
    z-index: 10;
}

body.dark-mode .language-bubble:hover {
    border-color: #667eea;
}

.language-bubble.active {
    border-color: #ffc107;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.5);
}

body.dark-mode .language-bubble.active {
    border-color: #ffc107;
}

@keyframes bubblePopInUp {
    0% {
        opacity: 0;
        transform: scale(0) translateY(20px);
    }
    70% {
        transform: scale(1.1) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes bubblePopOutDown {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0) translateY(20px);
    }
}

@media (max-width: 768px) {
    .language-toggle {
        bottom: 100px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .language-bubbles-container {
        bottom: 170px;
        right: 20px;
        grid-template-columns: repeat(3, 38px);
        gap: 10px;
        max-height: calc(100vh - 230px);
    }

    .language-bubble {
        width: 38px;
        height: 38px;
    }
}

/* Legal pages (privacy-policy.html, terms-and-conditions.html) */
.privacy-content,
.terms-content {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    text-align: left;
}

[dir="rtl"] .privacy-content,
[dir="rtl"] .terms-content {
    text-align: right;
}

.privacy-content .back-link,
.terms-content .back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.privacy-content .back-link:hover,
.terms-content .back-link:hover {
    text-decoration: underline;
}

.privacy-content .back-link::before,
.terms-content .back-link::before {
    content: '← ';
    margin-right: 0.2em;
}

.privacy-content h1,
.terms-content h1 {
    margin-top: 0;
}

.privacy-content h2,
.terms-content h2 {
    margin-top: 1.75rem;
    margin-bottom: 0.65rem;
}

.privacy-content p,
.terms-content p {
    margin-bottom: 0.85rem;
}

.privacy-content ul,
.terms-content ul {
    margin: 0.5rem 0 1rem;
    padding-left: 1.5rem;
}

[dir="rtl"] .privacy-content ul,
[dir="rtl"] .terms-content ul {
    padding-left: 0;
    padding-right: 1.5rem;
}

.privacy-content li,
.terms-content li {
    margin-bottom: 0.45rem;
}

.container:has(.privacy-content) main,
.container:has(.terms-content) main {
    padding-bottom: 7rem;
}

@media (max-width: 768px) {
    .privacy-content,
    .terms-content {
        max-width: 100%;
    }

    .container:has(.privacy-content) main,
    .container:has(.terms-content) main {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

.translation-notice {
    margin: 12px auto 0;
    padding: 10px 14px;
    max-width: 720px;
    background: rgba(255, 243, 205, 0.95);
    border: 1px solid rgba(255, 193, 7, 0.9);
    border-radius: 10px;
    color: #856404;
    font-size: 0.95rem;
}

body.dark-mode .translation-notice {
    background: rgba(102, 77, 3, 0.9);
    border-color: #ffc107;
    color: #ffc107;
}

/* SaltyPlanner detail page */
.sp-back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.sp-back-link::before {
    content: '← ';
    margin-right: 4px;
}

.sp-back-link:hover {
    text-decoration: underline;
}

body.dark-mode .sp-back-link {
    color: #a78bfa;
}

/* SaltyPlanner product page (salty-planner.html) — sp-* layout */
body.sp-page {
    min-height: 100vh;
}

body.sp-page.dark-mode {
    background: linear-gradient(165deg, #0c1228 0%, #151032 45%, #0a0f22 100%);
    color: #e2e8f0;
}

body.sp-page:not(.dark-mode) {
    background: linear-gradient(165deg, #f8fafc 0%, #e2e8f0 42%, #ffffff 100%);
    color: #334155;
}

body.sp-page .sp-shell {
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px 22px 48px;
}

body.sp-page .sp-topbar {
    position: relative;
    text-align: center;
    margin-bottom: 28px;
    padding: 8px 0 4px;
    min-height: 88px;
}

body.sp-page .sp-back {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    font-weight: 600;
    color: #a5b4fc;
    text-decoration: none;
    z-index: 1;
}

body.sp-page .sp-back:hover {
    color: #c4b5fd;
    text-decoration: underline;
}

body.sp-page .sp-brand-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    max-width: 100%;
    padding: 0 clamp(5rem, 18vw, 11rem);
}

body.sp-page .sp-mark {
    border-radius: 14px;
    display: block;
}

body.sp-page .sp-mark-hero {
    width: 56px;
    height: 56px;
}

body.sp-page .sp-brand-name {
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: #f8fafc;
}

body.sp-page main.sp-main {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 22px;
    padding: clamp(28px, 4vw, 44px);
    margin: 0 0 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

body.sp-page .sp-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 4vw, 40px);
    align-items: start;
    margin-bottom: clamp(40px, 6vw, 56px);
}

body.sp-page .sp-kicker {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #818cf8;
    margin: 0 0 12px;
}

body.sp-page .sp-hero h1 {
    font-size: clamp(1.85rem, 4.2vw, 2.65rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 14px;
}

body.sp-page .sp-lede {
    margin: 0;
    color: #cbd5e1;
    font-size: 1.05rem;
    max-width: 34rem;
}

body.sp-page .sp-bullets {
    margin: 18px 0 0;
    padding-left: 1.15rem;
    color: #94a3b8;
    font-size: 0.98rem;
}

body.sp-page .sp-bullets li {
    margin-bottom: 8px;
}

/* Vote card mock — mirrors in-app VoteCard (options + X / total + submit) */
body.sp-page .sp-votecard {
    border-radius: 16px;
    overflow: hidden;
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

body.sp-page .sp-vc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

body.sp-page .sp-vc-titles {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

body.sp-page .sp-vc-name {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: #f8fafc;
    line-height: 1.25;
}

body.sp-page .sp-vc-started {
    display: block;
    font-size: 0.82rem;
    color: #94a3b8;
}

body.sp-page .sp-vc-meta {
    font-size: 0.78rem;
    color: #94a3b8;
    flex-shrink: 0;
    padding-top: 2px;
}

body.sp-page .sp-vc-options {
    padding: 8px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.sp-page .sp-vc-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.22);
}

body.sp-page .sp-vc-option--selected {
    background: rgba(99, 102, 241, 0.14);
    border-color: rgba(99, 102, 241, 0.65);
}

body.sp-page .sp-vc-checkbox {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 5px;
    box-sizing: border-box;
}

body.sp-page .sp-vc-checkbox--off {
    border: 2px solid #64748b;
    background: transparent;
}

body.sp-page .sp-vc-checkbox--on {
    border: 2px solid #6366f1;
    background: #6366f1;
    position: relative;
}

body.sp-page .sp-vc-checkbox--on::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

body.sp-page .sp-vc-option-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body.sp-page .sp-vc-date {
    font-size: 0.98rem;
    font-weight: 600;
    color: #f1f5f9;
}

body.sp-page .sp-vc-range {
    font-size: 0.88rem;
    color: #94a3b8;
}

body.sp-page .sp-vc-count {
    font-size: 0.88rem;
    font-weight: 600;
    color: #94a3b8;
    flex-shrink: 0;
    margin-right: 4px;
}

body.sp-page .sp-vc-footer {
    padding: 14px 16px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

body.sp-page .sp-vc-submit {
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: #6366f1;
    cursor: default;
}

body.sp-page .sp-section-title {
    font-size: clamp(1.25rem, 2.5vw, 1.55rem);
    color: #f8fafc;
    margin: 0 0 18px;
    letter-spacing: -0.02em;
}

body.sp-page .sp-compare {
    margin-bottom: clamp(40px, 6vw, 52px);
}

body.sp-page .sp-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

body.sp-page .sp-compare-card {
    border-radius: 16px;
    padding: 20px;
}

body.sp-page .sp-compare-card h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

body.sp-page .sp-compare-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
}

body.sp-page .sp-compare-bad {
    background: rgba(127, 29, 29, 0.2);
    border: 1px solid rgba(248, 113, 113, 0.25);
    color: #fecaca;
}

body.sp-page .sp-compare-bad h3 {
    color: #fca5a5;
}

body.sp-page .sp-compare-good {
    background: rgba(30, 58, 138, 0.35);
    border: 1px solid rgba(129, 140, 248, 0.35);
    color: #c7d2fe;
}

body.sp-page .sp-compare-good h3 {
    color: #a5b4fc;
}

body.sp-page .sp-bento {
    margin-bottom: clamp(40px, 6vw, 52px);
}

body.sp-page .sp-bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

body.sp-page .sp-tile {
    border-radius: 14px;
    padding: 18px;
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

body.sp-page .sp-tile h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: #e0e7ff;
}

body.sp-page .sp-tile p {
    margin: 0;
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.5;
}

body.sp-page .sp-tile-wide {
    grid-column: 1 / -1;
}

body.sp-page .sp-tile-with-cal {
    display: grid;
    grid-template-columns: minmax(0, 200px) 1fr;
    gap: 18px;
    align-items: center;
}

body.sp-page .sp-tile-with-groups {
    display: grid;
    grid-template-columns: minmax(0, 220px) 1fr;
    gap: 18px;
    align-items: center;
}

body.sp-page .sp-groups-mock {
    border-radius: 12px;
    padding: 10px;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.22);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.sp-page .sp-groups-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.12);
}

body.sp-page .sp-groups-info {
    flex: 1;
    min-width: 0;
}

body.sp-page .sp-groups-name-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

body.sp-page .sp-groups-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.sp-page .sp-groups-muted {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: #94a3b8;
    opacity: 0.9;
}

body.sp-page .sp-groups-muted-svg {
    display: block;
}

body.sp-page .sp-groups-meta {
    font-size: 0.78rem;
    color: #94a3b8;
}

body.sp-page .sp-groups-chev {
    font-size: 1.15rem;
    font-weight: 300;
    color: #94a3b8;
    line-height: 1;
    flex-shrink: 0;
}

body.sp-page .sp-tile-groups-copy {
    min-width: 0;
}

body.sp-page .sp-tile-groups-copy h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: #e0e7ff;
}

body.sp-page .sp-tile-groups-copy p {
    margin: 0;
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.5;
}

body.sp-page .sp-tile-cal-copy {
    min-width: 0;
}

body.sp-page .sp-tile-cal-copy h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: #e0e7ff;
}

body.sp-page .sp-tile-cal-copy p {
    margin: 0;
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.5;
}

body.sp-page .sp-cal-mock {
    border-radius: 12px;
    padding: 10px;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.22);
}

body.sp-page .sp-cal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 0 2px;
}

body.sp-page .sp-cal-nav {
    color: #64748b;
    font-size: 1rem;
    line-height: 1;
    user-select: none;
}

body.sp-page .sp-cal-month {
    font-size: 0.8rem;
    font-weight: 600;
    color: #f1f5f9;
}

body.sp-page .sp-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 6px;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

body.sp-page .sp-cal-cells {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

body.sp-page .sp-cal-cell {
    min-height: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 3px 1px 2px;
    border-radius: 10px;
    box-sizing: border-box;
}

body.sp-page .sp-cal-cell--pad {
    visibility: hidden;
    min-height: 36px;
    padding: 0;
}

body.sp-page .sp-cal-num {
    font-size: 0.72rem;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.2;
}

body.sp-page .sp-cal-cell--today .sp-cal-num {
    color: #818cf8;
    font-weight: 700;
}

body.sp-page .sp-cal-cell--selected {
    background: rgba(99, 102, 241, 0.22);
    border: 1px solid rgba(99, 102, 241, 0.55);
}

body.sp-page .sp-cal-marker {
    margin-top: 2px;
    flex-shrink: 0;
}

body.sp-page .sp-cal-markers {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-top: 2px;
    max-width: 100%;
}

body.sp-page .sp-cal-markers .sp-cal-marker {
    margin-top: 0;
}

body.sp-page .sp-cal-marker--circle {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6366f1;
}

body.sp-page .sp-cal-marker--circle.sp-cal-marker--green {
    background: #4caf50;
}

body.sp-page .sp-cal-marker--star {
    font-size: 9px;
    line-height: 1;
    color: #4285f4;
    margin-top: 1px;
}

body.sp-page .sp-cal-marker--star::before {
    content: '★';
}

body.sp-page .sp-cal-marker--square {
    width: 7px;
    height: 7px;
    border-radius: 1px;
    background: #ff9800;
}

body.sp-page .sp-cal-marker--line {
    width: 11px;
    height: 2px;
    border-radius: 1px;
    background: #f44336;
}

body.sp-page .sp-flow {
    margin-bottom: clamp(40px, 6vw, 52px);
}

body.sp-page .sp-flow-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid rgba(129, 140, 248, 0.35);
    margin-left: 14px;
}

body.sp-page .sp-flow-list li {
    position: relative;
    padding: 0 0 22px 22px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
}

body.sp-page .sp-flow-list li:last-child {
    padding-bottom: 0;
}

body.sp-page .sp-flow-step {
    box-sizing: border-box;
    margin-left: -29px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid #0f172a;
}

body.sp-page .sp-flow-list strong {
    display: block;
    color: #f1f5f9;
    margin-bottom: 4px;
}

body.sp-page .sp-flow-list li > div > span {
    display: block;
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.45;
}

body.sp-page .sp-for {
    margin-bottom: clamp(32px, 5vw, 44px);
}

body.sp-page .sp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.sp-page .sp-chip {
    font-size: 0.85rem;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #cbd5e1;
}

body.sp-page .sp-get {
    border-radius: 18px;
    padding: 24px;
    background: linear-gradient(125deg, rgba(49, 46, 129, 0.5), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(129, 140, 248, 0.3);
}

body.sp-page .sp-get-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

body.sp-page .sp-get h2 {
    margin: 0;
    font-size: 1.35rem;
    color: #fff;
}

body.sp-page .sp-get-sub {
    margin: 6px 0 0;
    color: #cbd5e1;
    font-size: 0.95rem;
}

body.sp-page .sp-get-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.sp-page .sp-foot {
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

body.sp-page .sp-foot p {
    margin: 8px 0;
}

body.sp-page .sp-foot .privacy-link {
    color: #a5b4fc;
    text-decoration: none;
}

body.sp-page .sp-foot .privacy-link:hover {
    text-decoration: underline;
}

/* SaltyPlanner page — light theme (toggle off dark-mode) */
body.sp-page:not(.dark-mode) .sp-back {
    color: #4f46e5;
}

body.sp-page:not(.dark-mode) .sp-back:hover {
    color: #6366f1;
}

body.sp-page:not(.dark-mode) .sp-brand-name {
    color: #0f172a;
}

body.sp-page:not(.dark-mode) main.sp-main {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
}

body.sp-page:not(.dark-mode) .sp-kicker {
    color: #4f46e5;
}

body.sp-page:not(.dark-mode) .sp-hero h1 {
    color: #0f172a;
}

body.sp-page:not(.dark-mode) .sp-lede {
    color: #475569;
}

body.sp-page:not(.dark-mode) .sp-bullets {
    color: #64748b;
}

body.sp-page:not(.dark-mode) .sp-votecard {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

body.sp-page:not(.dark-mode) .sp-vc-header {
    border-bottom-color: rgba(15, 23, 42, 0.1);
}

body.sp-page:not(.dark-mode) .sp-vc-name {
    color: #0f172a;
}

body.sp-page:not(.dark-mode) .sp-vc-started,
body.sp-page:not(.dark-mode) .sp-vc-meta {
    color: #64748b;
}

body.sp-page:not(.dark-mode) .sp-vc-option {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.1);
}

body.sp-page:not(.dark-mode) .sp-vc-option--selected {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.45);
}

body.sp-page:not(.dark-mode) .sp-vc-checkbox--off {
    border-color: #94a3b8;
}

body.sp-page:not(.dark-mode) .sp-vc-date {
    color: #0f172a;
}

body.sp-page:not(.dark-mode) .sp-vc-range,
body.sp-page:not(.dark-mode) .sp-vc-count {
    color: #64748b;
}

body.sp-page:not(.dark-mode) .sp-vc-footer {
    border-top-color: rgba(15, 23, 42, 0.1);
}

body.sp-page:not(.dark-mode) .sp-section-title {
    color: #0f172a;
}

body.sp-page:not(.dark-mode) .sp-compare-bad {
    background: rgba(254, 226, 226, 0.6);
    border-color: rgba(248, 113, 113, 0.35);
    color: #991b1b;
}

body.sp-page:not(.dark-mode) .sp-compare-bad h3 {
    color: #b91c1c;
}

body.sp-page:not(.dark-mode) .sp-compare-good {
    background: rgba(224, 231, 255, 0.65);
    border-color: rgba(99, 102, 241, 0.35);
    color: #312e81;
}

body.sp-page:not(.dark-mode) .sp-compare-good h3 {
    color: #4338ca;
}

body.sp-page:not(.dark-mode) .sp-tile {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(15, 23, 42, 0.1);
}

body.sp-page:not(.dark-mode) .sp-tile h3,
body.sp-page:not(.dark-mode) .sp-tile-cal-copy h3,
body.sp-page:not(.dark-mode) .sp-tile-groups-copy h3 {
    color: #1e1b4b;
}

body.sp-page:not(.dark-mode) .sp-tile p,
body.sp-page:not(.dark-mode) .sp-tile-cal-copy p,
body.sp-page:not(.dark-mode) .sp-tile-groups-copy p {
    color: #64748b;
}

body.sp-page:not(.dark-mode) .sp-groups-mock,
body.sp-page:not(.dark-mode) .sp-cal-mock {
    background: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.1);
}

body.sp-page:not(.dark-mode) .sp-groups-row {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
}

body.sp-page:not(.dark-mode) .sp-groups-name {
    color: #0f172a;
}

body.sp-page:not(.dark-mode) .sp-groups-meta,
body.sp-page:not(.dark-mode) .sp-groups-chev,
body.sp-page:not(.dark-mode) .sp-groups-muted {
    color: #64748b;
}

body.sp-page:not(.dark-mode) .sp-cal-toolbar .sp-cal-month {
    color: #0f172a;
}

body.sp-page:not(.dark-mode) .sp-cal-weekdays {
    color: #64748b;
}

body.sp-page:not(.dark-mode) .sp-cal-cell {
    background: transparent;
}

body.sp-page:not(.dark-mode) .sp-cal-num {
    color: #334155;
}

body.sp-page:not(.dark-mode) .sp-cal-cell--today .sp-cal-num {
    color: #4f46e5;
}

body.sp-page:not(.dark-mode) .sp-cal-cell--selected {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.4);
}

body.sp-page:not(.dark-mode) .sp-cal-nav {
    color: #94a3b8;
}

body.sp-page:not(.dark-mode) .sp-flow-list {
    border-left-color: rgba(79, 70, 229, 0.35);
}

body.sp-page:not(.dark-mode) .sp-flow-step {
    border-color: #ffffff;
}

body.sp-page:not(.dark-mode) .sp-flow-list strong {
    color: #0f172a;
}

body.sp-page:not(.dark-mode) .sp-flow-list li > div > span {
    color: #64748b;
}

body.sp-page:not(.dark-mode) .sp-chip {
    background: rgba(241, 245, 249, 0.95);
    border-color: rgba(15, 23, 42, 0.12);
    color: #475569;
}

body.sp-page:not(.dark-mode) .sp-get {
    background: linear-gradient(125deg, rgba(224, 231, 255, 0.75), rgba(255, 255, 255, 0.95));
    border-color: rgba(99, 102, 241, 0.25);
}

body.sp-page:not(.dark-mode) .sp-get h2 {
    color: #0f172a;
}

body.sp-page:not(.dark-mode) .sp-get-sub {
    color: #475569;
}

body.sp-page:not(.dark-mode) .sp-foot {
    color: #64748b;
}

body.sp-page:not(.dark-mode) .sp-foot .privacy-link {
    color: #4f46e5;
}

body.sp-page:not(.dark-mode) .sp-foot .privacy-link:hover {
    color: #6366f1;
}

@media (max-width: 800px) {
    body.sp-page .sp-brand-center {
        padding: 2.25rem 0 0;
    }

    body.sp-page .sp-back {
        position: static;
        transform: none;
        display: inline-block;
        margin-bottom: 12px;
    }

    body.sp-page .sp-topbar {
        min-height: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    body.sp-page .sp-hero,
    body.sp-page .sp-compare-grid,
    body.sp-page .sp-bento-grid {
        grid-template-columns: 1fr;
    }

    body.sp-page .sp-tile-wide {
        grid-column: 1;
    }

    body.sp-page .sp-tile-with-cal {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    body.sp-page .sp-tile-with-groups {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    body.sp-page .sp-groups-mock {
        max-width: 260px;
        margin: 0 auto;
    }

    body.sp-page .sp-cal-mock {
        max-width: 220px;
        margin: 0 auto;
    }

    body.sp-page .sp-get-inner {
        flex-direction: column;
        align-items: stretch;
    }

    body.sp-page .sp-get-buttons {
        justify-content: flex-start;
    }
}

/* RTL support (basic) */
[dir="rtl"] body {
    direction: rtl;
}

[dir="rtl"] .logo-container {
    direction: rtl;
}

[dir="rtl"] .back-link::before,
[dir="rtl"] .privacy-content .back-link::before,
[dir="rtl"] .terms-content .back-link::before {
    content: '→ ';
}

[dir="rtl"] .privacy-content .back-link::before,
[dir="rtl"] .terms-content .back-link::before {
    margin-right: 0;
    margin-left: 0.2em;
}


@media (max-width: 768px) {
    .theme-toggle {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }
}

