:root {
    color-scheme: light dark;
    --surface: rgba(255, 255, 255, 0.8);
    --surface-dark: rgba(24, 24, 28, 0.88);
    --stroke: rgba(226, 232, 240, 0.6);
    --stroke-dark: rgba(92, 99, 122, 0.45);
    --accent: #7c4dff;
    --accent-secondary: #00d4ff;
    --accent-gradient: linear-gradient(135deg, #7c4dff, #00d4ff);
    --text-primary: #101322;
    --text-secondary: #505568;
    --blur: 32px;
}

* {
    box-sizing: border-box;
}

.animera-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
    background: white;
    color: var(--text-primary);
}

@media (prefers-color-scheme: dark) {
    .animera-body {
        background: #0b0c10;
        color: rgba(255, 255, 255, 0.92);
    }
}

/* More page */
.animera-body.more-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 32px 16px;
    gap: 36px;
}

.more-layout header {
    margin: 0;
    width: min(480px, 92vw);
}

.more-layout h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 32px);
    font-weight: 700;
}

.more-layout .more-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 18px;
    width: min(480px, 92vw);
}

.more-layout .more-item {
    display: block;
    text-decoration: none;
    border-radius: 20px;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(var(--blur));
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    color: inherit;
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    position: relative;
    overflow: hidden;
}

@media (prefers-color-scheme: dark) {
    .more-layout .more-item {
        background: rgba(30, 32, 40, 0.82);
        box-shadow: 0 16px 40px rgba(2, 6, 23, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    }
}

.more-layout .more-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.12), rgba(0, 212, 255, 0.08));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.more-layout .more-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2),
    inset 0 0 0 1px rgba(124, 77, 255, 0.25);
}

.more-layout .more-item:hover::after {
    opacity: 1;
}

.more-layout .item-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    z-index: 1;
}

.more-layout .icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(124, 77, 255, 0.16);
    color: var(--accent);
    flex-shrink: 0;
}

.more-layout .icon svg {
    width: 26px;
    height: 26px;
}

.more-layout .details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.more-layout .title {
    font-size: 18px;
    font-weight: 600;
}

.more-layout .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    box-shadow: 0 0 12px rgba(124, 77, 255, 0.35);
}

@media (max-width: 520px) {
    .more-layout .item-content {
        gap: 14px;
    }

    .more-layout .icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .more-layout .icon svg {
        width: 22px;
        height: 22px;
    }
}

/* Terms pages */
.animera-body.terms-layout {
    display: flex;
    justify-content: center;
    padding: clamp(24px, 5vw, 64px) 16px;
}

.terms-layout .page {
    width: min(960px, 100%);
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 4vw, 32px);
}

body.terms-list-page .page {
    gap: clamp(24px, 4vw, 36px);
}

.terms-layout .page-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

body.terms-privacy-page .page-nav {
    gap: 16px;
}

body.terms-list-page .page-nav {
    margin-bottom: clamp(12px, 3vw, 20px);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.7;
    transition: opacity 0.25s ease;
}

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

.glass-card {
    border-radius: clamp(20px, 3vw, 32px);
    background: var(--surface);
    backdrop-filter: blur(18px);
    padding: clamp(24px, 5vw, 40px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

@media (prefers-color-scheme: dark) {
    .glass-card {
        background: var(--surface-dark);
        box-shadow: 0 24px 48px rgba(2, 6, 23, 0.48);
    }
}

.terms-layout .terms-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: clamp(18px, 3vw, 24px);
}

.terms-layout .terms-header h1 {
    margin: 0;
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
}

.terms-layout .terms-subtitle {
    margin: 0;
    font-size: clamp(14px, 3vw, 16px);
    color: var(--text-secondary);
}

@media (prefers-color-scheme: dark) {
    .terms-layout .terms-subtitle {
        color: rgba(255, 255, 255, 0.68);
    }
}

.terms-layout .terms-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0;
}

.terms-layout .terms-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: clamp(16px, 3vw, 24px) 0;
}

.terms-layout .terms-item + .terms-item {
    border-top: 1px solid var(--stroke);
}

@media (prefers-color-scheme: dark) {
    .terms-layout .terms-item + .terms-item {
        border-top: 1px solid var(--stroke-dark);
    }
}

.terms-layout .item-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.terms-layout .item-accent {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-gradient);
    box-shadow: 0 0 16px rgba(124, 77, 255, 0.45);
    flex-shrink: 0;
}

.terms-layout .item-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.terms-layout .item-description {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

@media (prefers-color-scheme: dark) {
    .terms-layout .item-description {
        color: rgba(255, 255, 255, 0.64);
    }
}

.terms-layout .item-footer {
    display: flex;
    justify-content: flex-end;
}

.terms-layout .item-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background-image: var(--accent-gradient);
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(124, 77, 255, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.terms-layout .item-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(124, 77, 255, 0.45);
}

@media (max-width: 640px) {
    .terms-layout .item-footer {
        width: 100%;
        justify-content: center;
    }

    .terms-layout .item-link {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }
}

.terms-layout .glass-card header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: clamp(18px, 4vw, 28px);
}

.terms-layout .glass-card header h1 {
    margin: 0;
    font-size: clamp(26px, 5vw, 36px);
    font-weight: 700;
}

.terms-layout .intro {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.terms-layout .meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-secondary);
}

.terms-layout .meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (prefers-color-scheme: dark) {
    .terms-layout .intro,
    .terms-layout .meta {
        color: rgba(255, 255, 255, 0.68);
    }
}

.terms-layout .glass-card section {
    display: grid;
    gap: 12px;
    padding: clamp(20px, 4vw, 28px) 0;
}

.terms-layout .glass-card section + section {
    border-top: 1px solid var(--stroke);
}

@media (prefers-color-scheme: dark) {
    .terms-layout .glass-card section + section {
        border-top: 1px solid var(--stroke-dark);
    }
}

.terms-layout h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.terms-layout h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.terms-layout h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
}

.terms-layout p {
    margin: 0;
    line-height: 1.7;
    color: var(--text-secondary);
}

.terms-layout ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    line-height: 1.7;
    color: var(--text-secondary);
}

@media (prefers-color-scheme: dark) {
    .terms-layout p,
    .terms-layout ul {
        color: rgba(255, 255, 255, 0.72);
    }

    .terms-layout h4 {
        color: rgba(255, 255, 255, 0.68);
    }
}

.terms-layout .contact-note {
    margin: clamp(16px, 3vw, 24px) 0 0;
    padding: 16px 20px;
    border-radius: 14px;
    background-image: var(--accent-gradient);
    color: white;
    font-size: 14px;
    line-height: 1.6;
}

.terms-layout .footnote {
    margin-top: clamp(20px, 4vw, 32px);
    font-size: 14px;
    color: var(--text-secondary);
}

@media (prefers-color-scheme: dark) {
    .terms-layout .footnote {
        color: rgba(255, 255, 255, 0.64);
    }
}

/* License page */
.license-page .license-card {
    display: grid;
    gap: clamp(18px, 5vw, 28px);
    padding: clamp(20px, 5vw, 28px);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: none;
    border-radius: clamp(12px, 3vw, 20px);
    border: 1px solid var(--stroke);
    backdrop-filter: none;
}

@media (prefers-color-scheme: dark) {
    .license-page .license-card {
        background: rgba(27, 29, 36, 0.92);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
}

.license-page .license-card section {
    padding: 0;
    gap: clamp(12px, 4vw, 18px);
    border-top: none;
}

.license-page .license-card section + section {
    border-top: none;
}

.license-page .license-intro {
    display: grid;
    gap: 12px;
    font-size: clamp(13px, 3.4vw, 15px);
    line-height: 1.6;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
}

.license-page .license-intro .intro-en {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-primary);
}

.license-page .license-list {
    display: grid;
    gap: clamp(24px, 6vw, 32px);
}

.license-page .license-entry {
    display: grid;
    gap: clamp(8px, 4vw, 14px);
    font-size: clamp(13px, 3.4vw, 15px);
    line-height: 1.6;
}

.license-page .license-line {
    margin: 0;
    color: var(--text-secondary);
}

.license-page .license-project {
    font-size: clamp(18px, 5vw, 22px);
    font-weight: 600;
    color: var(--text-primary);
}

.license-page .license-url a {
    color: var(--accent);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.license-page .license-url a:hover {
    text-decoration: underline;
}

.license-page .license-name {
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-primary);
}

.license-page .license-separator {
    margin: clamp(4px, 1.5vw, 8px) 0;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--text-secondary);
}

.license-page .license-body {
    margin: clamp(8px, 3vw, 12px) 0;
    padding: 0;
    font-family: "Source Code Pro", "JetBrains Mono", monospace;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: clamp(12px, 3.2vw, 14px);
    line-height: 1.6;
    color: var(--text-primary);
}

@media (prefers-color-scheme: dark) {
    .license-page .license-line {
        color: rgba(255, 255, 255, 0.72);
    }

    .license-page .license-project,
    .license-page .license-name,
    .license-page .license-body {
        color: rgba(255, 255, 255, 0.92);
    }

    .license-page .license-separator {
        color: rgba(255, 255, 255, 0.5);
    }

    .license-page .license-url a {
        color: #9fb4ff;
    }
}

.animera-body.license-page {
    overflow-x: hidden;
}

@media (max-width: 480px) {
    .license-page .license-body {
        font-size: clamp(11px, 3.4vw, 13px);
    }
}

/* Notice page */
.animera-body.notice-page {
    margin: 0;
    min-height: 100vh;
    display: block;
    padding: clamp(24px, 5vw, 40px) clamp(16px, 6vw, 28px) clamp(40px, 8vw, 60px);
    background: white;
}

.notice-page .page {
    width: min(720px, 100%);
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 4vw, 26px);
    margin: 0 auto;
}

.notice-page .page-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: clamp(12px, 3vw, 20px);
}

.notice-page .notice-header {
    margin: 0;
}

.notice-page .notice-title {
    margin: 0;
    font-size: clamp(26px, 6vw, 32px);
    font-weight: 700;
}

.notice-page .notice-content {
    width: 100%;
}

.notice-page.notice-detail-page {
    background: white;
}

.notice-page.notice-detail-page .page {
    width: min(700px, 100%);
    margin: 0 auto;
}

.notice-detail-header {
    padding: clamp(22px, 6vw, 32px) clamp(18px, 6vw, 24px) clamp(14px, 4vw, 20px);
    display: grid;
    gap: clamp(12px, 3vw, 16px);
    border-bottom: 1px solid rgba(209, 197, 160, 0.45);
}

.notice-detail-title-row {
    display: flex;
    align-items: center;
    gap: clamp(10px, 3vw, 14px);
}

.notice-detail-dot {
    width: clamp(10px, 3vw, 12px);
    height: clamp(10px, 3vw, 12px);
    border-radius: 50%;
    background: linear-gradient(135deg, #1fc36a, #4ddc6f);
    box-shadow: 0 0 10px rgba(31, 195, 106, 0.35);
    flex-shrink: 0;
}

.notice-detail-title {
    margin: 0;
    font-size: clamp(18px, 6vw, 22px);
    font-weight: 600;
    line-height: 1.45;
    color: #1b1d13;
}

.notice-detail-meta {
    display: flex;
    align-items: baseline;
    gap: clamp(8px, 2.5vw, 12px);
    font-size: clamp(12px, 3.4vw, 14px);
    color: rgba(32, 35, 25, 0.6);
}

.notice-detail-category {
    display: inline-flex;
    align-items: center;
}

.notice-detail-content {
    padding: clamp(22px, 6vw, 30px) clamp(18px, 6vw, 24px) clamp(26px, 8vw, 40px);
    display: block;
}

.notice-detail-body {
    display: grid;
    gap: clamp(14px, 4vw, 20px);
    font-size: clamp(14px, 4vw, 16px);
    line-height: 1.7;
    color: rgba(27, 29, 19, 0.88);
}

.notice-detail-body p {
    margin: 0;
    white-space: pre-line; /* 줄바꿈 문자를 실제 줄바꿈으로 표시 */
    word-wrap: break-word;
}

.notice-page .notice-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    width: min(640px, 100%);
    border-top: 1px solid rgba(32, 35, 25, 0.08);
}

.notice-page .notice-item {
    border-bottom: 1px solid rgba(32, 35, 25, 0.08);
}

.notice-page .notice-link {
    display: block;
    padding: clamp(18px, 5vw, 26px) clamp(18px, 6vw, 24px);
    text-decoration: none;
    color: inherit;
    background: #ffffff;
}

.notice-page .notice-table {
    width: 100%;
    border-collapse: collapse;
}

.notice-page .notice-title-cell,
.notice-page .notice-meta-cell {
    text-align: left;
    padding: 0;
}

.notice-page .notice-link.notice-link--static {
    pointer-events: none;
    cursor: default;
}

.notice-page .notice-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    font-size: clamp(11px, 3vw, 13px);
    color: var(--text-secondary);
}

.notice-page .notice-item-title {
    margin: 0;
    font-size: clamp(14px, 4vw, 16px);
    font-weight: 400;
    line-height: 1.5;
    color: inherit;
}

.notice-page .notice-category {
    font-size: clamp(11px, 3vw, 13px);
    color: rgba(32, 35, 25, 0.6);
    display: inline-flex;
    align-items: center;
}

.notice-page .notice-date {
    font-size: clamp(11px, 3vw, 13px);
    color: rgba(32, 35, 25, 0.6);
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}

.notice-page .notice-empty {
    border-top: 1px solid var(--stroke);
    border-bottom: 1px solid var(--stroke);
    padding: clamp(28px, 7vw, 40px) 0;
    text-align: center;
    display: grid;
    gap: 10px;
    color: var(--text-secondary);
}

.notice-page .notice-empty p {
    margin: 0;
    font-size: clamp(13px, 3.4vw, 15px);
}

.notice-page .notice-empty .notice-empty-subject {
    font-size: clamp(12px, 3.2vw, 14px);
}

@media (prefers-color-scheme: dark) {
    .animera-body.notice-page {
        background: #0b0c10;
    }

    .notice-page .notice-list,
    .notice-page .notice-empty {
        border-color: var(--stroke-dark);
    }

    .notice-page .notice-list {
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .notice-page .notice-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .notice-page .notice-link {
        background: rgba(23, 24, 30, 0.8);
    }

    .notice-detail-header {
        border-bottom-color: var(--stroke-dark);
    }

    .notice-detail-title {
        color: rgba(255, 255, 255, 0.9);
    }

    .notice-detail-meta {
        color: rgba(255, 255, 255, 0.65);
    }

    .notice-detail-body {
        color: rgba(255, 255, 255, 0.82);
    }

    .notice-page .notice-meta,
    .notice-page .notice-empty {
        color: rgba(255, 255, 255, 0.72);
    }

    .notice-page .notice-category,
    .notice-page .notice-date {
        color: rgba(255, 255, 255, 0.6);
    }

    .notice-page .notice-empty-subject {
        color: rgba(255, 255, 255, 0.6);
    }
}
