/* =========================
   DODO Studio Global Style
   wwwroot/css/app.css
   ========================= */

:root {
    --green: #40cf6b;
    --green-dark: #0c9b4d;
    --text: #242936;
    --text-muted: #5b6475;
    --border: #edf0f4;
    --panel: #ffffff;
    --bg: #ffffff;
    --footer: #171b24;
    --danger-bg: #fef2f2;
    --danger-text: #991b1b;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

img {
    max-width: 100%;
}

/* =========================
   Blazor Loading Screen
   index.html 내부 #app 로딩용
   ========================= */

.app-loading-page {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.app-loading-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.app-loading-logo {
    width: 220px;
    max-width: 220px;
    height: auto;
    object-fit: contain;
    display: block;
}

.app-loading-spinner {
    width: 34px;
    height: 34px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--green);
    border-radius: 50%;
    animation: dodo-loading-spin 0.8s linear infinite;
}

.app-loading-card p {
    margin: 0;
    color: #2d3340;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

@keyframes dodo-loading-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* =========================
   Common Sub Page Layout
   Privacy / Support / Company 등
   ========================= */

.page-hero {
    max-width: 1120px;
    margin: 0 auto;
    padding: 72px 24px 32px;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.8;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 48px 24px;
}

.detail-card,
.legal-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    padding: 34px;
}

.detail-card h2,
.legal-card h2 {
    margin-top: 0;
}

.detail-card p,
.legal-card p,
.legal-card li,
.detail-card li {
    color: var(--text-muted);
    line-height: 1.8;
}

.legal-card h2 {
    margin-top: 34px;
    font-size: 22px;
}

.updated-date {
    font-weight: 800;
    color: var(--text);
}

.table-wrap {
    overflow-x: auto;
    margin-top: 24px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th,
.info-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.info-table th {
    width: 180px;
    color: var(--text);
    background: #f8fafc;
}

.notice-box {
    margin: 18px 0;
    padding: 16px;
    border-radius: 18px;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    line-height: 1.6;
}

.support-box {
    margin: 24px 0;
    padding: 24px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px solid var(--border);
}

.support-box p {
    margin: 0 0 8px;
}

.support-box a {
    color: var(--green-dark);
    font-size: 22px;
    font-weight: 900;
}

/* =========================
   Blazor Error UI
   ========================= */

#blazor-error-ui {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 20px;
    background: var(--danger-bg);
    color: var(--danger-text);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

#blazor-error-ui .reload {
    margin-left: 12px;
    text-decoration: underline;
}

#blazor-error-ui .dismiss {
    position: absolute;
    right: 16px;
    cursor: pointer;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 980px) {
    .page-hero {
        padding: 56px 20px 28px;
    }

    .section {
        padding: 36px 20px;
    }

    .detail-card,
    .legal-card {
        padding: 26px;
        border-radius: 22px;
    }

    .info-table th {
        width: 140px;
    }
}

@media (max-width: 560px) {
    .app-loading-logo {
        width: 170px;
        max-width: 170px;
    }

    .app-loading-spinner {
        width: 30px;
        height: 30px;
        border-width: 3px;
    }

    .page-hero h1 {
        font-size: 40px;
    }

    .page-hero p {
        font-size: 16px;
    }

    .detail-card,
    .legal-card {
        padding: 22px;
        border-radius: 18px;
    }

    .info-table th,
    .info-table td {
        padding: 13px;
        font-size: 14px;
    }

    .support-box a {
        font-size: 18px;
    }
}