:root {
    color-scheme: light;
    --primary: #00A896;
    --primary-dark: #007A6E;
    --primary-light: #E6F7F4;
    --secondary: #F37021;
    --accent: #FFCC00;
    --surface: #F8FCFB;
    --surface-elevated: #FFFFFF;
    --text: #0F172A;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --card: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 48px rgba(0, 122, 110, 0.12);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;
    --header-height: 72px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--surface);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 168, 150, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(243, 112, 33, 0.05), transparent);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--primary-dark); }
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.header-inner {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.brand-link:hover { color: var(--primary-dark); }

.brand-link img {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    object-fit: cover;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    color: var(--primary-dark);
    background: var(--primary-light);
    border-color: rgba(0, 168, 150, 0.25);
}

.btn-primary-solid {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 168, 150, 0.35);
}

.btn-primary-solid:hover {
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 168, 150, 0.45);
}

.btn-white {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

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

/* Official-style store badges */
.store-badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
}

.store-badge-row--center {
    justify-content: center;
}

.store-badge-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.store-badge-link {
    display: block;
    line-height: 0;
    border-radius: 8px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.store-badge-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.store-badge-link--static {
    pointer-events: none;
    cursor: default;
}

.store-badge-link--static:hover {
    transform: none;
    box-shadow: none;
}

.store-badge-img {
    display: block;
    width: 155px;
    height: 46px;
    border-radius: 8px;
    object-fit: fill;
}

.store-badge-col--soon .store-badge-img {
    opacity: 0.72;
}

.store-soon-pill {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    line-height: 1.2;
}

main { flex: 1; }

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin-top: 10px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.site-footer {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: rgba(255, 255, 255, 0.75);
    padding: 56px 24px 32px;
    margin-top: auto;
}

.footer-grid {
    max-width: 1140px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    text-align: left;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.footer-brand img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
}

.footer-brand:hover { color: #fff; }

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.55;
    max-width: 280px;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    padding: 5px 0;
    font-weight: 500;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
    max-width: 1140px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a { color: rgba(255, 255, 255, 0.65); }
.footer-bottom a:hover { color: #fff; }

.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px 72px;
}

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

.legal-hero .section-label {
    margin-bottom: 16px;
}

.legal-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-md);
}

.legal-card h1 {
    margin-top: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.legal-card h2 {
    margin-top: 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    padding-bottom: 6px;
    border-bottom: 2px solid var(--primary-light);
}

.legal-card p,
.legal-card li {
    color: #475569;
    font-size: 0.98rem;
}

.legal-card p { margin-top: 0.75rem; }

.legal-card ul,
.legal-card ol {
    margin: 0.75rem 0 0.75rem 1.25rem;
}

.legal-card li { margin-bottom: 0.4rem; }

.legal-content h1 {
    margin-top: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.legal-content h2 {
    margin-top: 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    padding-bottom: 6px;
    border-bottom: 2px solid var(--primary-light);
}

.legal-content p,
.legal-content li {
    color: #475569;
    font-size: 0.98rem;
}

.legal-content p { margin-top: 0.75rem; }

.legal-content ul,
.legal-content ol {
    margin: 0.75rem 0 0.75rem 1.25rem;
}

.legal-content a { color: var(--primary); }

.legal-loading {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.legal-error {
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-sm);
    padding: 14px 16px;
}

.legal-updated {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--surface);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
}

.deletion-title {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.deletion-lead {
    margin: 0 auto;
    max-width: 520px;
    color: var(--text-muted);
    font-size: 1rem;
}

.deletion-card {
    max-width: 520px;
    margin: 0 auto;
}

.deletion-step {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.deletion-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.deletion-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 1rem;
    background: #fff;
    color: var(--text);
}

.deletion-input:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-color: var(--primary);
}

.deletion-btn {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

.deletion-btn-danger {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-sm);
    background: #dc2626;
    color: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.deletion-btn-danger:hover:not(:disabled) {
    background: #b91c1c;
}

.deletion-btn-danger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.deletion-link-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: 0.9rem;
    color: var(--primary);
    cursor: pointer;
    text-align: left;
}

.deletion-link-btn:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.deletion-step-hint {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.deletion-alert {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

.deletion-alert-error {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.deletion-alert-success {
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.deletion-warning {
    padding: 16px;
    border-radius: var(--radius-sm);
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 0.95rem;
}

.deletion-warning ul {
    margin: 10px 0 0;
    padding-left: 1.2rem;
}

.deletion-warning li {
    margin-bottom: 6px;
}

.deletion-success {
    padding: 16px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    border: 1px solid rgba(0, 168, 150, 0.25);
    color: var(--primary-dark);
}

.deletion-info {
    max-width: 520px;
    margin: 32px auto 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.deletion-info h2 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: var(--text);
}

.deletion-info p {
    margin: 0 0 10px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .footer-tagline { margin: 0 auto; }

    .footer-bottom { justify-content: center; text-align: center; }

    .legal-card { padding: 28px 22px; }
}

@media (max-width: 640px) {
    .header-actions .btn-ghost { display: none; }
}
