:root {
  --orange: #ee5a1f;
  --ink: #0d0c0b;
  --bg: #f7f5f1;
  --card: #ffffff;
  --line: #e4e1db;
  --muted: #6b675f;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: "Geist", system-ui, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.6; }

.doc-topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(16px, 4vw, 48px); background: rgba(247,245,241,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.doc-brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.doc-brand img { height: 28px; }
.doc-back { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: 13px; text-decoration: none; transition: border-color .15s ease; }
.doc-back:hover { border-color: var(--orange); }

.doc-wrap { max-width: 820px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 40px) 100px; }
.doc-kicker { font-family: "Geist", sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
.doc-h1 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: clamp(30px, 6vw, 46px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 14px; }
.doc-meta { color: var(--muted); font-size: 14px; margin: 0 0 30px; }

.doc-note { background: #fff6ef; border: 1px solid #f4d3bd; border-radius: 12px; padding: 14px 18px; font-size: 14px; color: #8a4b22; margin-bottom: 36px; }

.doc-toc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; margin-bottom: 44px; }
.doc-toc h2 { font-family: "Bricolage Grotesque", sans-serif; font-size: 16px; margin: 0 0 12px; }
.doc-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; font-size: 14px; }
@media (max-width: 560px) { .doc-toc ol { columns: 1; } }
.doc-toc a { color: var(--ink); text-decoration: none; }
.doc-toc a:hover { color: var(--orange); text-decoration: underline; }

.doc-wrap h2.sec { font-family: "Bricolage Grotesque", sans-serif; font-size: clamp(20px, 3vw, 26px); margin: 44px 0 12px; scroll-margin-top: 80px; }
.doc-wrap h3 { font-family: "Bricolage Grotesque", sans-serif; font-size: 17px; margin: 24px 0 6px; }
.doc-wrap p { margin: 0 0 14px; color: #33302b; }
.doc-wrap ul { margin: 0 0 16px; padding-left: 22px; color: #33302b; }
.doc-wrap li { margin-bottom: 7px; }
.doc-wrap strong { color: var(--ink); }
.ph { background: var(--orange); color: #fff; padding: 1px 7px; border-radius: 5px; font-size: 13px; font-weight: 600; }

.doc-foot { border-top: 1px solid var(--line); margin-top: 60px; padding-top: 24px; font-size: 13px; color: var(--muted); }
.legal-id { font-size: 13px; color: var(--muted); }
.doc-wrap p a, .doc-foot a, .lr-check a { color: var(--orange); }
.lr-form { display: grid; gap: 22px; }
.lr-form fieldset { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 18px; margin: 0; display: grid; gap: 14px; min-width: 0; }
.lr-form legend { font-weight: 700; padding: 0 6px; }
.lr-form label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
.lr-form input, .lr-form select, .lr-form textarea { font: inherit; font-weight: 400; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%; }
.lr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 620px) { .lr-grid { grid-template-columns: 1fr; } }
.lr-form .lr-check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-weight: 400; }
.lr-form .lr-check input { width: 20px; height: 20px; }
.lr-btn { background: var(--orange); color: #fff; border: 0; border-radius: 999px; padding: 14px 26px; font: inherit; font-weight: 700; cursor: pointer; }
.lr-out { white-space: pre-wrap; margin-top: 24px; }
.lr-out:empty { display: none; }
