/* ========================================
   Reset & Base Styles
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    line-height: 1.7;
    color: #1a1a1a;
    background-color: #0a0a0a;
    overflow-x: hidden;
    word-break: keep-all;
    overflow-wrap: break-word;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========================================
   Container (Mobile-First)
   ======================================== */

.container {
    max-width: 100%;
    padding: 0 1.25rem;
    margin: 0 auto;
}

/* ========================================
   Header
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    z-index: 1000;
    padding: 1rem 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header.scrolled .anchor-nav a {
    color: #333;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: inline-block;
    line-height: 0;
}

.logo-img {
    height: 1.75rem;
    width: auto;
    display: block;
}

.anchor-nav ul {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.anchor-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    transition: color 0.3s ease;
}

.anchor-nav a.active {
    padding-bottom: 4px;
    border-bottom: 2px solid currentColor;
}

.anchor-nav a:active {
    color: #0066cc;
}

.anchor-nav a:hover {
    opacity: 0.7;
}

.header.scrolled .anchor-nav a.active {
    padding-bottom: 4px;
    border-bottom: 2px solid currentColor;
}

.header.scrolled .anchor-nav a:hover {
    color: #0066cc;
    opacity: 1;
}

/* ========================================
   Section 1: The Cover (Hero)
   ======================================== */

.section-full-height {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background-color: #000;
    overflow: hidden;
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    filter: brightness(0.4) grayscale(100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
    padding: 2.5rem 1.25rem;
    padding-bottom: 12vh;
}

.main-slogan {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(1rem, 3vw, 2.5rem);
    margin-bottom: clamp(2rem, 5vw, 3.75rem);
}

.slogan-char {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
}

.char-hanja {
    font-size: clamp(3.5rem, 10vw, 5.9375rem);
    font-weight: 700;
    line-height: 1;
}

.char-hangul {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 400;
    opacity: 0.8;
    letter-spacing: 0;
}

.sub-text {
    font-size: clamp(1.25rem, 3.5vw, 2rem);
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.6;
    text-align: center;
    white-space: nowrap;
}

/* ========================================
   Section 2: Key Spirit (정신과 철학)
   ======================================== */

.section-light-bg {
    background-color: #f8f8f8;
    padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: clamp(2.5rem, 6vw, 4.375rem);
    letter-spacing: clamp(1px, 0.3vw, 4px);
}

.spirit-item {
    margin-bottom: clamp(2rem, 4vw, 3.125rem);
    padding-bottom: clamp(2rem, 4vw, 3.125rem);
    border-bottom: 1px solid #e0e0e0;
}

.spirit-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.spirit-question {
    font-size: clamp(1.125rem, 2.8vw, 1.5rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.spirit-answer {
    font-size: clamp(0.9375rem, 2.2vw, 1.125rem);
    line-height: 1.8;
    color: #555;
    font-weight: 400;
}

/* ========================================
   Section 3: The Path (역사 갤러리)
   ======================================== */

.section-white-bg {
    background-color: #fff;
    padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.history-card {
    margin-bottom: 3.75rem;
}

.card-image-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
}

.card-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.card-image-wrapper:hover .card-image {
    transform: scale(1.03);
}

.card-caption {
    padding: 0 0.5rem;
}

.card-year {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.card-description {
    font-size: clamp(1.125rem, 2.8vw, 1.5rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.625rem;
    line-height: 1.4;
    letter-spacing: -0.5px;
}

.card-detail {
    font-size: clamp(0.875rem, 2vw, 1rem);
    line-height: 1.6;
    color: #555;
}

/* ========================================
   Section 4: Successors (센터의 사명)
   ======================================== */

.section-dark-bg {
    background-color: #1a1a1a;
    color: #fff;
    padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.section-dark-bg .section-title {
    color: #fff;
}

.manifesto-text {
    font-size: clamp(0.9375rem, 2.2vw, 1.125rem);
    line-height: 1.9;
    color: #e0e0e0;
    margin-bottom: 1.875rem;
    text-align: justify;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background-color: #0a0a0a;
    color: #999;
    padding: 2.5rem 0 1.5625rem;
}

.footer .container {
    text-align: left;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1rem;
    margin-bottom: 1.875rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #222;
}

.footer-links a {
    color: #999;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-logo {
    margin-bottom: 1.25rem;
    text-align: left;
}

.footer-logo-img {
    max-width: 9.375rem;
    height: auto;
}

.footer-info {
    margin-bottom: 0.9375rem;
}

.info-item {
    font-size: 0.75rem;
    line-height: 1.1;
    color: #888;
    margin-bottom: 0;
    padding: 1px 0;
}

.info-item strong {
    display: inline-block;
    width: 5.3125rem;
    color: #666;
    font-weight: 400;
    margin-right: 2px;
}

.info-item a {
    color: #0066cc;
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 0.75rem;
    color: #666;
    text-align: left;
    padding-top: 1.25rem;
    padding-bottom: 0.625rem;
    border-top: 1px solid #222;
}

/* ========================================
   Desktop Optimization (max-width: 680px)
   ======================================== */

@media (min-width: 768px) {
    body {
        background-color: #0a0a0a;
    }

    .container {
        max-width: 42.5rem;
        padding: 0 2.5rem;
    }

    .header .container {
        max-width: 42.5rem;
        margin: 0 auto;
    }

    .anchor-nav ul {
        gap: 1.75rem;
    }

    .anchor-nav a {
        font-size: 1rem;
        font-weight: 500;
    }

    .hero-image-overlay {
        max-width: 42.5rem;
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-content {
        padding-bottom: 8vh;
    }

    .slogan-char {
        gap: 0.75rem;
    }

    .char-hanja {
        letter-spacing: 4px;
    }

    .char-hangul {
        letter-spacing: 1px;
    }

    .sub-text {
        letter-spacing: 0.6px;
    }

    .spirit-item {
        margin-bottom: 3.125rem;
        padding-bottom: 3.125rem;
    }

    .footer-links {
        display: flex;
        flex-direction: row;
        gap: 1.875rem;
        border-bottom: none;
        margin-bottom: 2.5rem;
    }

    .footer-links a {
        font-size: 0.875rem;
    }

    .header.scrolled .anchor-nav a:hover {
        color: #0066cc;
    }
}

/* ========================================
   Wide Desktop (max-width 유지)
   ======================================== */

@media (min-width: 1200px) {
    .container {
        max-width: 42.5rem;
    }

    .header .container {
        max-width: 42.5rem;
    }
}

/* ========================================
   AOS Animation Adjustments
   ======================================== */

[data-aos] {
    pointer-events: auto;
}

/* ========================================
   About Page (소개 페이지)
   ======================================== */

.first-section {
    padding-top: clamp(5rem, 12vw, 7.5rem);
}

.chairman-section {
    background-color: #fff;
    padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.chairman-content {
    text-align: center;
}

.chairman-images {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    align-items: center;
}

.chairman-photo,
.chairman-historic-photo {
    width: 100%;
    max-width: 25rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.chairman-photo img,
.chairman-historic-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.chairman-title {
    font-size: clamp(1.375rem, 3.5vw, 1.875rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.875rem;
    line-height: 1.5;
    letter-spacing: -0.5px;
}

.chairman-text {
    font-size: clamp(0.9375rem, 2.2vw, 1.125rem);
    line-height: 1.9;
    color: #333;
    margin-bottom: 1.25rem;
    text-align: left;
}

/* Vision Section */
.vision-section {
    background-color: #f8f8f8;
    padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.vision-grid {
    display: grid;
    gap: 2.5rem;
}

.vision-item {
    background-color: #fff;
    padding: 1.875rem 1.5625rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.vision-keyword {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.vision-description {
    font-size: clamp(0.9375rem, 2.2vw, 1rem);
    line-height: 1.7;
    color: #555;
}

/* History Timeline Section */
.history-timeline-section {
    background-color: #fff;
    padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.timeline-item {
    margin-bottom: 1.875rem;
    padding-left: 1.875rem;
    position: relative;
}

.timeline-item:first-child::after {
    content: '';
    position: absolute;
    left: 4.5px;
    top: 17px;
    bottom: -30px;
    width: 3px;
    background-color: #0066cc;
}

.timeline-item:last-child::after {
    content: '';
    position: absolute;
    left: 4.5px;
    top: 0;
    height: 25px;
    width: 3px;
    background-color: #0066cc;
}

.timeline-item:not(:first-child):not(:last-child)::after {
    content: '';
    position: absolute;
    left: 4.5px;
    top: 0;
    bottom: -30px;
    width: 3px;
    background-color: #0066cc;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: #0066cc;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:first-child::before {
    top: 5px;
}

.timeline-date {
    font-size: 1rem;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 0.625rem;
}

.timeline-content {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: #333;
    line-height: 1.6;
}

/* Organization Section */
.organization-section {
    background-color: #f8f8f8;
    padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.org-department {
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 1.5625rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.org-department-title {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: #0066cc;
    text-align: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e0e0e0;
}

.org-chairman,
.org-executive,
.org-secretary,
.org-supporter {
    text-align: center;
    padding: 0.9375rem;
    background-color: #f8f8f8;
    border-radius: 0.375rem;
    margin: 0 auto 1.25rem;
    width: calc((100% - 1.5rem) / 3);
}

.org-position {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.3125rem;
}

.org-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
}

.org-members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.org-member {
    text-align: center;
    padding: 0.9375rem;
    background-color: #f8f8f8;
    border-radius: 0.375rem;
}

.org-member .org-position {
    font-size: 0.875rem;
}

.org-member .org-name {
    font-size: 1.0625rem;
}

.org-connector {
    display: none;
}

/* Branch Connector */
.org-branch-connector {
    position: relative;
    height: 18px;
    width: 50%;
    margin: 0 auto;
}

.org-branch-connector::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 15px;
    background-color: #0066cc;
}

.org-branch-connector::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #0066cc;
}

.org-branch-lines {
    display: flex;
    justify-content: space-between;
    width: 50%;
    margin: 0 auto 1.25rem;
    height: 20px;
}

.org-branch-lines::before,
.org-branch-lines::after {
    content: '';
    display: block;
    width: 3px;
    height: 100%;
    background-color: #0066cc;
}

@media (max-width: 767px) {
    .org-branch-connector,
    .org-branch-lines {
        width: 50%;
    }
}

@media (min-width: 768px) {
    .org-branch-connector,
    .org-branch-lines {
        width: 50%;
        max-width: 21.25rem;
    }
}

/* More Info Section (더 알아보기) */
.more-info-list {
    max-width: 25rem;
    margin: 0 auto;
}

.more-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid #333;
    color: #e0e0e0;
    transition: color 0.3s ease;
}

.more-info-item:last-child {
    border-bottom: none;
}

.more-info-label {
    font-size: clamp(1.125rem, 2.8vw, 1.25rem);
    font-weight: 500;
}

.more-info-arrow {
    font-size: 1.25rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.more-info-item:active {
    color: #fff;
}

.more-info-item:active .more-info-arrow {
    opacity: 1;
}

.org-sub-departments {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .org-sub-departments {
        gap: 1.25rem;
    }
}

.org-sub-departments .org-secretary,
.org-sub-departments .org-supporter {
    width: 100% !important;
    max-width: 12.5rem;
}

/* ========================================
   Programs Page (동행 페이지)
   ======================================== */

.program-section {
    padding: clamp(3rem, 7vw, 3.75rem) 0;
}

.program-section:nth-child(odd) {
    background-color: #fff;
}

.program-section:nth-child(even) {
    background-color: #f8f8f8;
}

.program-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background-color: #0066cc;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 1.25rem;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.program-title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5625rem;
    line-height: 1.4;
    letter-spacing: -0.5px;
}

.program-description {
    font-size: clamp(0.9375rem, 2.2vw, 1.125rem);
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5625rem;
}

.program-details {
    margin-top: 1.875rem;
}

.program-detail-item {
    margin-bottom: 0.9375rem;
}

.program-detail-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 0.5rem;
}

.program-detail-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #333;
}

.program-curriculum {
    margin-top: 1.5625rem;
}

.program-curriculum-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.9375rem;
}

.curriculum-list {
    list-style: none;
    padding-left: 0;
}

.curriculum-list li {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: #555;
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.625rem;
}

.curriculum-list li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: #0066cc;
    font-weight: 700;
}

/* ========================================
   Donate Page (후원 페이지)
   ======================================== */

.donate-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    overflow: hidden;
}

.donate-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.donate-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.3) grayscale(100%);
}

.donate-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
    padding: 2.5rem 1.25rem;
}

.donate-hero-title {
    font-size: clamp(1.75rem, 5vw, 2.625rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.donate-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.375rem);
    font-weight: 400;
    opacity: 0.9;
}

.donate-campaign {
    background-color: #fff;
    padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.campaign-headline {
    font-size: clamp(1.375rem, 3.5vw, 2rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.875rem;
    text-align: center;
}

.campaign-text {
    font-size: clamp(0.9375rem, 2.2vw, 1.125rem);
    line-height: 1.9;
    color: #555;
    margin-bottom: 1.25rem;
    text-align: left;
}

.campaign-action {
    text-align: center;
    margin-top: 2.5rem;
}

.donate-button {
    display: inline-block;
    padding: 1.125rem 2.5rem;
    background-color: #0066cc;
    color: #fff;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 700;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.donate-button:active {
    background-color: #0052a3;
    transform: translateY(2px);
}

.faq-section {
    background-color: #f8f8f8;
    padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.faq-item {
    margin-bottom: 0;
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: block;
    width: 100%;
    font-size: clamp(0.9375rem, 2.5vw, 1.125rem);
    font-weight: 700;
    color: #1a1a1a;
    padding: 1.25rem 0;
    cursor: pointer;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '\203A';
    float: right;
    font-size: 1.375rem;
    font-weight: 300;
    color: #999;
    transition: transform 0.3s ease;
    transform: rotate(90deg);
}

details.faq-item[open] .faq-question::after {
    transform: rotate(270deg);
}

.faq-answer {
    font-size: clamp(0.875rem, 2.2vw, 1rem);
    line-height: 1.8;
    color: #555;
    padding: 0 0 1.25rem 0;
}

.donate-cta {
    background-color: #1a1a1a;
    color: #fff;
    padding: clamp(3rem, 7vw, 3.75rem) 0;
    text-align: center;
}

.cta-message {
    font-size: clamp(1.25rem, 3.5vw, 1.875rem);
    font-weight: 700;
    margin-bottom: 1.875rem;
    line-height: 1.5;
}

.cta-button {
    display: inline-block;
    padding: 1.125rem 2.5rem;
    background-color: #fff;
    color: #1a1a1a;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 700;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.cta-button:active {
    background-color: #f0f0f0;
}

/* ========================================
   Desktop Adjustments for New Pages
   ======================================== */

@media (min-width: 768px) {
    .chairman-images {
        flex-direction: row;
        justify-content: center;
        gap: 1.875rem;
    }

    .chairman-text {
        text-align: justify;
    }

    /* Vision Grid */
    .vision-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.875rem;
    }

    /* Organization */
    .org-position {
        font-size: 1.125rem;
        color: #555;
        margin-bottom: 0.375rem;
    }

    .org-name {
        font-size: 1.5rem;
    }

    .org-member .org-position {
        font-size: 1.0625rem;
        color: #555;
        margin-bottom: 0.3125rem;
    }

    .org-member .org-name {
        font-size: 1.25rem;
    }

    .org-members-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.9375rem;
    }

    .more-info-item:hover {
        color: #fff;
    }

    .more-info-item:hover .more-info-arrow {
        opacity: 1;
    }

    .org-chairman,
    .org-executive,
    .org-secretary,
    .org-supporter {
        width: calc((100% - 1.875rem) / 3);
    }

    /* Donate Hero */
    .donate-hero {
        min-height: 60vh;
    }

    .campaign-text {
        text-align: justify;
    }

    .donate-button:hover,
    .cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 102, 204, 0.4);
    }
}

/* ========================================
   Legal Page (정관 페이지)
   ======================================== */

.legal-section {
    background-color: #fff;
    padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.legal-page-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.legal-meta {
    text-align: center;
    margin-bottom: 2rem;
    color: #888;
    font-size: 0.875rem;
    line-height: 1.8;
}

.legal-download {
    text-align: center;
    margin-bottom: clamp(2.5rem, 6vw, 3.75rem);
}

.legal-download-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 1px solid #ccc;
    border-radius: 0.375rem;
    color: #555;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.legal-download-button:active {
    background-color: #f0f0f0;
}

.legal-body {
    line-height: 1.8;
}

.legal-chapter {
    font-size: clamp(1.125rem, 3vw, 1.375rem);
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-top: clamp(2.5rem, 6vw, 3.75rem);
    margin-bottom: 1.875rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e0e0e0;
}

.legal-article {
    margin-bottom: 1.875rem;
}

.legal-article h3 {
    font-size: clamp(0.9375rem, 2.2vw, 1.0625rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.legal-article p {
    font-size: clamp(0.875rem, 2vw, 0.9375rem);
    color: #333;
    margin-bottom: 0.375rem;
    text-align: justify;
}

.legal-list {
    list-style: none;
    padding-left: 1.25rem;
    margin: 0.5rem 0;
}

.legal-list li {
    font-size: clamp(0.875rem, 2vw, 0.9375rem);
    color: #333;
    line-height: 1.8;
    position: relative;
    padding-left: 0;
}

.legal-list li::before {
    content: counter(list-item) '. ';
    font-weight: 500;
}

/* ========================================
   Placeholder Page (준비중 페이지)
   ======================================== */

.placeholder-section {
    background-color: #f8f8f8;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.placeholder-message {
    font-size: clamp(0.9375rem, 2.2vw, 1.125rem);
    color: #888;
    text-align: center;
    line-height: 1.8;
}

/* ========================================
   Desktop Adjustments for Legal & Placeholder
   ======================================== */

@media (min-width: 768px) {
    .legal-download-button:hover {
        border-color: #0066cc;
        color: #0066cc;
    }
}

/* ========================================
   Accessibility & Performance
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
