/* PickUp Company — Privacy Policy site */

:root {
    --primary: #006B3D;
    --primary-dark: #00512E;
    --secondary: #43B83F;
    --accent: #FFB800;
    --bg: #FFFFFF;
    --bg-light: #F5F7F5;
    --text: #24332B;
    --muted: #5B6B62;
    --border: #E2E8E4;
    --primary-soft: #E6F2EC;
    --accent-soft: #FFF6DB;

    --radius: 16px;
    --radius-sm: 10px;
    --header-h: 72px;
    --shadow: 0 1px 2px rgba(16, 40, 28, .04), 0 8px 24px rgba(16, 40, 28, .06);
    --font: "IBM Plex Sans Thai", "Noto Sans Thai", "Sarabun", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 24px);
    -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; border-radius: 4px; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 100;
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(16, 40, 28, .06); }

.header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -.01em;
    min-width: 0;
}
.brand:hover { color: var(--primary); }
.brand-logo img { height: 44px; width: auto; }
.brand-name { white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
    position: relative;
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.site-nav a:hover { background: var(--bg-light); color: var(--primary); }
.site-nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px 400px at 85% -10%, rgba(67, 184, 63, .14), transparent 60%),
        linear-gradient(180deg, var(--bg-light), #EEF4EF);
    padding: 72px 0 80px;
    border-bottom: 1px solid var(--border);
}
.hero-inner { position: relative; z-index: 1; max-width: 1180px; }
.hero-inner > * { max-width: 760px; }

.hero-deco { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-deco--green {
    width: 360px; height: 360px;
    right: -90px; top: -120px;
    background: radial-gradient(circle at 30% 30%, rgba(67, 184, 63, .30), rgba(0, 107, 61, .12));
}
.hero-deco--gold {
    width: 120px; height: 120px;
    right: 220px; bottom: -40px;
    background: radial-gradient(circle at 35% 35%, #FFD25C, var(--accent));
    opacity: .85;
}
.hero-deco--ring {
    width: 220px; height: 220px;
    right: 120px; top: 60px;
    border: 2px dashed rgba(0, 107, 61, .22);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary);
}
.eyebrow::before {
    content: "";
    width: 24px;
    height: 3px;
    border-radius: 3px;
    background: var(--accent);
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.25;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -.01em;
}
.lead { margin: 0 0 28px; font-size: 17px; color: var(--muted); line-height: 1.9; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
}
.chip svg { color: var(--primary); }
.chip--draft { background: var(--accent-soft); border-color: #F3DD9B; color: #5A4500; font-weight: 500; }

/* ---------- Document layout ---------- */
.doc-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 80px;
    align-items: start;
}

.toc-wrap {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.toc {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
}
.toc summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    font-weight: 700;
    font-size: 15px;
    color: var(--primary);
    cursor: pointer;
}
.toc summary::-webkit-details-marker { display: none; }
.toc-chevron { transition: transform .2s; }
.toc[open] .toc-chevron { transform: rotate(180deg); }

.toc ol { list-style: none; margin: 0; padding: 0 0 4px; }
.toc a {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 1.55;
    color: var(--text);
    text-decoration: none;
    transition: background .15s, color .15s;
}
.toc a:hover { background: #fff; color: var(--primary); }
.toc a.active { background: #fff; color: var(--primary); font-weight: 600; box-shadow: inset 3px 0 0 var(--secondary); }
.toc-num {
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    display: inline-grid;
    place-items: center;
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}
.toc a.active .toc-num { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Sections ---------- */
.doc-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }

.doc-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 36px;
    box-shadow: var(--shadow);
    scroll-margin-top: calc(var(--header-h) + 24px);
}

.section-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.section-num {
    flex: none;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #0A8A50);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    position: relative;
}
.section-num::after {
    content: "";
    position: absolute;
    right: -3px;
    top: -3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #fff;
}
.section-head h2 {
    margin: 0;
    font-size: clamp(20px, 2.4vw, 24px);
    line-height: 1.4;
    color: var(--primary);
    font-weight: 700;
}

.section-body > *:first-child { margin-top: 0; }
.section-body > *:last-child { margin-bottom: 0; }
.section-body p { margin: 0 0 14px; }
.section-body h3 {
    margin: 26px 0 10px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-body h3::before {
    content: "";
    width: 6px;
    height: 18px;
    border-radius: 3px;
    background: var(--secondary);
}

.list { margin: 0 0 16px; padding: 0; list-style: none; }
.list li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.list li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: .72em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary);
}

.steps { counter-reset: step; list-style: none; margin: 0 0 18px; padding: 0; }
.steps li {
    counter-increment: step;
    position: relative;
    padding: 12px 16px 12px 60px;
    margin-bottom: 10px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}
.steps li::before {
    content: counter(step);
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.table-wrap {
    overflow-x: auto;
    margin: 0 0 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; line-height: 1.65; }
th { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
tbody tr + tr td { border-top: 1px solid var(--border); }
tbody tr:nth-child(even) td { background: #FAFBFA; }

.callout {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0 0 18px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: var(--primary-soft);
    color: var(--primary-dark);
}
.callout svg { flex: none; margin-top: 4px; }
.callout p { margin: 0; }

.todo {
    margin: 22px 0 0;
    padding: 16px 20px;
    border: 1px dashed #E2B53A;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    font-size: 14.5px;
    color: #4A3A06;
}
.todo-title { margin: 0 0 6px !important; font-weight: 700; color: #6B5000; }
.todo-title small { font-weight: 400; opacity: .8; }
.todo ul { margin: 0; padding-left: 20px; }
.todo li { margin-bottom: 4px; }

.ph {
    display: inline;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    overflow-wrap: anywhere;
    padding: 0 8px;
    border-radius: 6px;
    background: var(--accent-soft);
    border: 1px dashed #E2B53A;
    color: #6B5000;
    font-size: .92em;
    line-height: 1.6;
}

.link-row { margin-top: 20px !important; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background .15s, color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--outline { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn--outline:hover { background: var(--primary-soft); }

.request-box {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 20px;
    margin: 0 0 18px;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    border: 1px solid var(--border);
}
.request-hint { flex-basis: 100%; margin: 0 !important; font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary); color: rgba(255, 255, 255, .86); position: relative; }
.site-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr;
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 40px;
}
.footer-brand p { margin: 16px 0 0; font-size: 14.5px; max-width: 360px; }
.brand--footer { color: #fff; }
.brand--footer:hover { color: #fff; }
.brand--footer .brand-logo { background: #fff; border-radius: 12px; padding: 6px 10px; }
.brand--footer .brand-logo img { height: 36px; }
.footer-title {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
}
.footer-links { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.footer-links li { margin-bottom: 8px; overflow-wrap: anywhere; }
.footer-links a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.site-footer .ph { background: rgba(255, 255, 255, .12); border-color: rgba(255, 184, 0, .7); color: #FFE7A3; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .14);
    padding: 18px 0;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .7);
}

/* ---------- Back to top ---------- */
.to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 40;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 107, 61, .3);
    cursor: pointer;
}
.to-top:hover { background: var(--primary-dark); }
.to-top[hidden] { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
    .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 28px; }
    .toc-wrap { position: static; max-height: none; overflow: visible; }
    .toc { background: #fff; box-shadow: var(--shadow); }
    .toc[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 6px; }
    .toc a.active { box-shadow: none; }
    .hero-deco--ring { display: none; }
}

@media (min-width: 1024px) {
    .toc summary { cursor: default; pointer-events: none; }
    .toc-chevron { display: none; }
}

@media (max-width: 767px) {
    :root { --header-h: 64px; }
    .container { padding: 0 16px; }
    .brand-logo img { height: 36px; }
    .brand { font-size: 17px; }

    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px 16px 16px;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 24px rgba(16, 40, 28, .08);
        display: none;
    }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 12px 16px; border-radius: var(--radius-sm); }

    .hero { padding: 44px 0 52px; }
    .hero-deco--green { width: 220px; height: 220px; right: -80px; top: -80px; }
    .hero-deco--gold { width: 72px; height: 72px; right: 24px; bottom: -24px; }
    .lead { font-size: 16px; }

    .doc-section { padding: 22px 18px; }
    .section-head { gap: 12px; }
    .section-num { width: 38px; height: 38px; font-size: 16px; border-radius: 10px; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; }
    .btn { width: 100%; justify-content: center; }
}
