/* 하루두알 법적 문서 스타일 */

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

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #212529;
    background-color: #F7F7FA;
}

a {
    color: #0B98A8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* Header */
.legal-header {
    background: white;
    border-bottom: 1px solid #EAEAEF;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(33, 37, 41, 0.04);
}

.legal-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #0B98A8;
}

.legal-nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #868E96;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-link:hover {
    color: #0B98A8;
    text-decoration: none;
}

.nav-link.active {
    color: #0B98A8;
    border-bottom-color: #0B98A8;
}

/* Main */
.legal-main {
    padding: 48px 0 80px;
}

.legal-content {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Table of Contents */
.toc {
    position: sticky;
    top: 80px;
    align-self: start;
    background: white;
    border-radius: 15px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(33, 37, 41, 0.04);
}

.toc h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #212529;
}

.toc nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toc a {
    font-size: 13px;
    font-weight: 500;
    color: #495057;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.toc a:hover {
    background: #F7F7FA;
    color: #0B98A8;
    text-decoration: none;
}

/* Document */
.legal-document {
    background: white;
    border-radius: 15px;
    padding: 48px;
    box-shadow: 0 2px 8px rgba(33, 37, 41, 0.04);
}

.doc-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: #212529;
    margin-bottom: 12px;
}

.version {
    font-size: 14px;
    color: #868E96;
    margin-bottom: 32px;
}

.doc-intro {
    background: #F7F7FA;
    border-left: 4px solid #0B98A8;
    padding: 20px 24px;
    margin-bottom: 40px;
    border-radius: 8px;
}

.doc-intro p {
    margin-bottom: 12px;
}

.doc-intro p:last-child {
    margin-bottom: 0;
}

.doc-section {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid #EAEAEF;
}

.doc-section:last-child {
    border-bottom: none;
}

.doc-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
    scroll-margin-top: 80px;
}

.doc-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    margin-top: 24px;
    margin-bottom: 12px;
}

.doc-section p {
    margin-bottom: 16px;
    color: #495057;
}

.doc-section ol,
.doc-section ul {
    margin-left: 24px;
    margin-bottom: 16px;
}

.doc-section li {
    margin-bottom: 12px;
    color: #495057;
}

.doc-section li strong {
    color: #212529;
}

/* Tables */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.info-table thead {
    background: #F7F7FA;
}

.info-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #212529;
    border-bottom: 2px solid #EAEAEF;
}

.info-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #EAEAEF;
    color: #495057;
}

.info-table tr:last-child td {
    border-bottom: none;
}

/* Contact Box */
.contact-box {
    background: #F7F7FA;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}

.contact-box h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #212529;
}

.contact-box p {
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-box p:last-child {
    margin-bottom: 0;
}

/* External Links */
.external-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.link-box {
    background: #F7F7FA;
    border-radius: 12px;
    padding: 20px;
}

.link-box h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #212529;
}

.link-box p {
    font-size: 13px;
    margin-bottom: 6px;
    color: #495057;
}

.link-box p:last-child {
    margin-bottom: 0;
}

/* Note */
.note {
    background: #FFF9E6;
    border-left: 4px solid #FFC107;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-size: 14px;
    color: #495057;
}

/* Addendum */
.addendum {
    background: #F7F7FA;
    padding: 24px;
    border-radius: 12px;
}

/* Footer */
.legal-footer {
    background: #2D2D2F;
    color: #ADB5BD;
    padding: 32px 0;
    text-align: center;
}

.legal-footer p {
    font-size: 13px;
    margin-bottom: 8px;
}

.legal-footer a {
    color: #ADB5BD;
}

.legal-footer a:hover {
    color: #0B98A8;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .toc {
        position: static;
        order: -1;
    }

    .legal-document {
        padding: 24px;
    }

    .doc-header h1 {
        font-size: 24px;
    }

    .external-links {
        grid-template-columns: 1fr;
    }

    .legal-nav {
        gap: 16px;
    }

    .nav-link {
        font-size: 13px;
    }
}
