@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
/* ==========================================================================
   SmartModoo Printer-M — shared styles (header, buttons, form, footer, legal)
   Palette: one brand color + ink + warm neutrals. No gradients, no glow.
   ========================================================================== */
:root {
    --brand: #1d4ed8;
    --brand-dark: #1739a6;
    --brand-light: #8fb2ff;
    --brand-tint: #eaf0fd;
    --navy: #0e1a2f;
    --navy-2: #16243d;
    --ink: #121722;
    --ink-2: #2a303c;
    --text: #424855;
    --muted: #6b717d;
    --rule: #e4e0d7;
    --rule-strong: #cdc7ba;
    --paper: #f7f5f0;
    --paper-2: #eeebe4;
    --radius: 10px;
    --ease: cubic-bezier(.2,.7,.2,1);
    --shadow-lg: 0 30px 60px -28px rgba(14, 26, 47, .38);
    --shadow-md: 0 18px 36px -22px rgba(14, 26, 47, .30);
    --white: #ffffff;
    --danger: #a3241b;
    --ok: #1d6b3a;
    /* legacy names kept for any inline usage */
    --color-primary: var(--brand);
    --color-secondary: var(--text);
    --color-dark: var(--ink);
    --color-light: var(--paper);
    --color-gray: var(--muted);
    --color-white: #fff;
    --font-family-base: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
    --container-width: 1200px;
    --gutter: 20px;
    --header-h: 64px;
}
@media (min-width: 768px) { :root { --gutter: 40px; --header-h: 76px; } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 56px); -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-family-base);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; font-weight: 700; letter-spacing: -0.025em; word-break: keep-all; overflow-wrap: break-word; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.2rem; }
p, li, dd, dt, summary, label { word-break: keep-all; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
strong { color: var(--ink); font-weight: 700; }

.container { max-width: calc(var(--container-width) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.text-center { text-align: center; }
.alt-bg { background: var(--paper); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 1000; background: var(--ink); color: #fff; padding: 12px 18px; }
.skip-link:focus { top: 12px; }

/* --- Header ------------------------------------------------------------ */
.header {
    position: sticky; top: 0; z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    transition: background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease);
}
.header.is-scrolled { box-shadow: 0 10px 30px -20px rgba(14, 26, 47, .35); }
.header > .container { min-height: var(--header-h); display: flex; align-items: center; }
.header-content { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo strong { font-weight: 800; }
/* Legal pages have a text-only logo: draw the same square mark in CSS. */
.privacy-page .logo::before {
    content: "M"; display: grid; place-items: center; width: 32px; height: 32px; flex: none;
    background: var(--brand); color: #fff; border-radius: 7px; font-weight: 800; font-size: 1.05rem; letter-spacing: 0;
}
.main-nav ul { display: flex; list-style: none; gap: 4px; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink-2); font-size: 0.94rem; font-weight: 500; white-space: nowrap; }
.main-nav a:hover { color: var(--brand); text-decoration: none; }
.header-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 22px;
    font: inherit; font-size: 0.97rem; font-weight: 650; line-height: 1.2; letter-spacing: -0.01em;
    border-radius: 6px; border: 1px solid transparent; cursor: pointer; text-align: center;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; }

/* --- Form (shared base) ------------------------------------------------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-group input, .form-group textarea {
    width: 100%; min-height: 50px; padding: 12px 14px;
    font: inherit; font-size: 1rem; color: var(--ink);
    background: var(--white); border: 1px solid var(--rule-strong); border-radius: 6px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-group input:hover { border-color: var(--muted); }
.form-group input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 78, 216, .15); }
.btn-submit { width: 100%; min-height: 56px; font-size: 1.05rem; }
.form-status { margin-top: 14px; padding: 14px 16px; border-left: 3px solid currentColor; font-size: 0.94rem; display: none; }
.form-status.success { background: #edf5ef; color: var(--ok); }
.form-status.error { background: #f8ecea; color: var(--danger); }

/* Consent block: separate labels and links prevent link clicks from toggling consent. */
.consent-group { border: 0; border-top: 1px solid var(--rule); padding: 18px 0 0; margin: 24px 0 22px; min-width: 0; }
.consent-group legend { float: left; width: 100%; font-size: 0.9rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; padding: 0; }
.consent-item { clear: both; border-bottom: 1px solid var(--paper-2); }
.consent-row { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; min-height: 48px; padding: 2px 0; }
.consent-row input { flex: 0 0 auto; width: 20px; height: 20px; accent-color: var(--brand); cursor: pointer; }
.consent-row label { flex: 1 1 200px; font-size: 0.92rem; color: var(--ink-2); cursor: pointer; padding: 12px 0; line-height: 1.5; min-height: 44px; }
.consent-row a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.85rem; color: var(--muted); text-decoration: underline; margin-left: auto; }
.consent-row a:hover { color: var(--brand); }
.consent-error { color: var(--danger); font-size: 0.86rem; margin: 0 0 10px 30px; }
.consent-note { clear: both; font-size: 0.84rem; color: var(--muted); margin-top: 12px; line-height: 1.6; }

/* --- Footer ------------------------------------------------------------- */
.footer { background: #0c1220; color: #8e95a3; font-size: 0.86rem; padding: 48px 0 56px; }
.footer p { line-height: 1.8; }
.footer p + p { margin-top: 14px; }
.footer strong { color: #e8eaee; }
.footer a { color: #c7ccd6; display: inline-block; padding: 12px 0; line-height: 1.4; }
.footer a:hover { color: #fff; }
.footer a[aria-current="page"] { color: #fff; font-weight: 700; }

/* --- Legal documents ---------------------------------------------------- */
.privacy-page { background: var(--white); }
.privacy-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px var(--gutter) 96px;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text);
    word-break: keep-all;
    overflow-wrap: break-word;
}
@media (min-width: 840px) { .privacy-page .privacy-content { padding-left: 0; padding-right: 0; } }
.privacy-content h1 { font-size: clamp(1.7rem, 4.2vw, 2.4rem); line-height: 1.3; letter-spacing: -0.035em; margin-bottom: 18px; padding-bottom: 22px; border-bottom: 2px solid var(--ink); }
.privacy-content h2 { font-size: 1.15rem; line-height: 1.5; margin-bottom: 10px; }
.privacy-content h3 { font-size: 1rem; margin: 18px 0 4px; }
.privacy-content section { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--rule); }
.privacy-content p { margin: 10px 0; }
.privacy-content ol, .privacy-content ul { padding-left: 1.4rem; margin: 10px 0; }
.privacy-content li { margin: 6px 0; }
.privacy-content li::marker { color: var(--muted); }
.privacy-content li ul { margin: 6px 0 14px; }
.privacy-content .effective-date { font-size: 0.9rem; color: var(--muted); margin: 0 0 6px; }
.privacy-content .note { font-size: 0.9rem; color: var(--ink-2); background: var(--paper); border-left: 3px solid var(--brand); padding: 12px 16px; margin: 16px 0; }
.privacy-content .table-wrap { overflow-x: auto; margin: 18px 0; -webkit-overflow-scrolling: touch; }
.privacy-content table { width: 100%; min-width: 520px; border-collapse: collapse; text-align: left; font-size: 0.92rem; line-height: 1.6; border-top: 2px solid var(--ink); }
.privacy-content caption { text-align: left; margin-bottom: 10px; font-weight: 700; color: var(--ink); }
.privacy-content th, .privacy-content td { padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.privacy-content thead th { background: var(--paper); color: var(--ink); font-weight: 700; }
.privacy-content tbody th { color: var(--ink); font-weight: 600; }
.privacy-content th:first-child { width: 26%; }
.privacy-page .footer .container { max-width: calc(760px + var(--gutter) * 2); }
@media (min-width: 840px) { .privacy-page .footer .container { padding-left: 0; padding-right: 0; } }

@media (max-width: 899px) {
    /* Legal pages use a full nav: logo row + scrollable nav row */
    .privacy-page .header-content { flex-wrap: wrap; gap: 0 12px; padding-top: 6px; }
    .privacy-page .header-actions .btn { min-height: 44px; padding: 0 14px; font-size: 0.88rem; }
    .privacy-page .main-nav { order: 3; width: calc(100% + var(--gutter) * 2); margin: 0 calc(var(--gutter) * -1); border-top: 1px solid var(--paper-2); overflow-x: auto; scrollbar-width: none; }
    .privacy-page .main-nav::-webkit-scrollbar { display: none; }
    .privacy-page .main-nav ul { padding: 0 calc(var(--gutter) - 12px); }
}
@media (max-width: 480px) {
    .privacy-page .header-actions .btn-secondary { display: none; }
    .privacy-content { padding-top: 36px; padding-bottom: 64px; font-size: 0.97rem; }
    .privacy-content section { margin-top: 28px; padding-top: 22px; }
    .privacy-content th, .privacy-content td { padding: 10px; }
}
@media print {
    .privacy-page .header, .privacy-page .footer { display: none; }
    .privacy-content { max-width: none; margin: 0; padding: 0; color: #000; }
    .privacy-content h2 { break-after: avoid; }
    .privacy-content tr { break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
