/* ==========================================================================
   lso_legal.css — Shared styles for LS Office legal document pages
   (lso_terms, lso_privacy, lso_email_reject)
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Noto Sans KR', sans-serif; }

body {
    background: #f4f7f6;
    color: #333;
    line-height: 1.7;
    font-size: 15px;
}

/* ---------- Minimal page header (normal mode only) ---------- */
.legal-page-header {
    background: #00605d;
    padding: 16px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.legal-back-btn {
    color: rgba(255,255,255,0.8);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    font-family: inherit;
    display: flex;
    align-items: center;
}
.legal-back-btn:hover { color: #fff; }
.legal-logo {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
}

/* ---------- Wrapper & container ---------- */
.law-doc-wrapper {
    padding: 40px 20px 80px;
}
.law-doc-container {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 50px 60px;
}

/* ---------- Document header ---------- */
.doc-header {
    border-bottom: 2px solid #007672;
    padding-bottom: 20px;
    margin-bottom: 28px;
}
.doc-header h1 {
    font-size: 26px;
    font-weight: 800;
    color: #1a2b4c;
    letter-spacing: -0.5px;
}
.doc-dates {
    margin-bottom: 28px;
    font-size: 13px;
    color: #777;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.doc-dates .txt-bold { font-weight: 700; }

/* ---------- Document content ---------- */
.doc-content { color: #444; }
.doc-content p { margin-bottom: 14px; word-break: keep-all; }
.doc-content ul,
.doc-content ol {
    padding-left: 22px;
    margin-bottom: 14px;
}
.doc-content li { margin-bottom: 6px; word-break: keep-all; }

/* ---------- Chapter & article ---------- */
.chapter-title {
    font-size: 15px;
    font-weight: 800;
    color: #007672;
    background: #f0f9f8;
    border-left: 4px solid #007672;
    padding: 10px 16px;
    margin: 36px 0 20px;
    border-radius: 0 6px 6px 0;
}
.article-block {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}
.article-block:last-child { border-bottom: none; }
.article-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a2b4c;
    margin-bottom: 10px;
}

/* ---------- Highlight box ---------- */
.highlight-box {
    background: #f4f7f6;
    border: 1px solid #d0e6e4;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 16px 0;
    font-size: 14px;
}
.highlight-box p { color: #007672; font-weight: 700; margin-bottom: 8px; }

/* ---------- Bold text helper ---------- */
.txt-bold { font-weight: 700; }

/* ---------- Page footer ---------- */
.legal-page-footer {
    text-align: center;
    padding: 24px;
    font-size: 13px;
    color: #aaa;
    border-top: 1px solid #eee;
}

/* ---------- iframe / modal mode overrides ---------- */
body.layout-none {
    background: #fff !important;
}
body.layout-none .law-doc-wrapper {
    padding: 0 !important;
}
body.layout-none .law-doc-container {
    border: none !important;
    box-shadow: none !important;
    padding: 20px 15px !important;
    border-radius: 0 !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .law-doc-container { padding: 30px 20px; }
    .doc-header h1 { font-size: 22px; }
}
