* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: #f5f0e8;
    color: #4a3f35;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
}

.container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.legal-header {
    padding: 24px 16px 20px;
    background: #f5f0e8;
    border-bottom: 1px solid #ddd5c8;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    color: #8a7d70;
    text-decoration: none;
    margin-bottom: 16px;
    transition: color 0.2s;
}

.back-link:hover {
    color: #a8654a;
}

.legal-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #3d342c;
    text-align: center;
    word-break: keep-all;
}

.legal-main {
    flex: 1;
    padding: 28px 16px 36px;
}

.legal-intro {
    font-size: 0.9rem;
    color: #5a4f44;
    margin-bottom: 28px;
    line-height: 1.75;
}

.legal-section {
    margin-bottom: 28px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #3d342c;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ebe4d9;
}

.legal-section p {
    font-size: 0.88rem;
    color: #5a4f44;
    margin-bottom: 10px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-list {
    list-style: none;
    padding: 0;
}

.legal-list li {
    position: relative;
    font-size: 0.88rem;
    color: #5a4f44;
    padding-left: 16px;
    margin-bottom: 8px;
}

.legal-list li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: #a8654a;
    font-weight: 700;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.info-table th,
.info-table td {
    padding: 12px 14px;
    border: 1px solid #ebe4d9;
    text-align: left;
    vertical-align: top;
    word-break: keep-all;
}

.info-table th {
    width: 32%;
    min-width: 110px;
    background: #f8f4ee;
    font-weight: 600;
    color: #3d342c;
}

.info-table td {
    color: #5a4f44;
    line-height: 1.65;
}

.company-card {
    background: #f8f4ee;
    border: 1px solid #ebe4d9;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
}

.company-name {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #3d342c;
    margin-bottom: 16px;
}

.company-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #8a7d70;
    margin-bottom: 6px;
}

.company-address {
    font-size: 0.88rem;
    color: #5a4f44;
    line-height: 1.65;
}

.legal-note {
    margin-top: 28px;
    padding: 14px 16px;
    background: #faf3dc;
    border: 1px solid #ede0b8;
    border-radius: 10px;
    font-size: 0.78rem;
    color: #6b5f4f;
    line-height: 1.65;
}

.site-footer {
    padding: 28px 16px 32px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    background: #ebe4d9;
    border-top: 1px solid #ddd5c8;
    text-align: center;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-links li {
    display: flex;
    align-items: center;
}

.footer-links li:not(:last-child)::after {
    display: none;
}

.footer-links a {
    font-size: 0.82rem;
    color: #6b5f4f;
    text-decoration: none;
    transition: color 0.2s;
    padding: 4px 8px;
}

.footer-links a:hover,
.footer-links a.active {
    color: #a8654a;
    font-weight: 600;
}

.footer-copy {
    font-size: 0.72rem;
    color: #9a8d7e;
    line-height: 1.5;
}

@media (min-width: 480px) {
    .legal-header {
        padding: 32px 24px 24px;
    }

    .legal-title {
        font-size: 1.5rem;
    }

    .legal-main {
        padding: 32px 24px 40px;
    }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 0;
        margin-bottom: 16px;
    }

    .footer-links li:not(:last-child)::after {
        display: block;
        content: '|';
        margin: 0 12px;
        color: #b8aa98;
        font-size: 0.78rem;
    }
}

@media (min-width: 768px) {
    body {
        padding: 0;
    }

    .container {
        box-shadow: 0 0 40px rgba(74, 63, 53, 0.06);
    }

    .legal-title {
        font-size: 1.65rem;
    }

    .info-table th {
        width: 28%;
    }

    .site-footer {
        padding: 32px 24px 40px;
        padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
    }
}

@media (min-width: 1024px) {
    body {
        padding: 24px 0;
    }
}

@media (max-width: 479px) {
    .info-table,
    .info-table tbody,
    .info-table tr,
    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
    }

    .info-table th {
        border-bottom: none;
        padding-bottom: 6px;
    }

    .info-table td {
        border-top: none;
        padding-top: 0;
        padding-bottom: 16px;
    }

    .info-table tr:last-child td {
        padding-bottom: 12px;
    }
}
