/* legal.css — terms / privacy / cookie settings pages */

* { box-sizing: border-box; }
body {
    margin: 0;
    background: #FFF4E8;
    color: #41332A;
    font-family: 'Sarabun', 'Leelawadee UI', 'Noto Sans Thai', sans-serif;
    font-size: 15px; line-height: 1.75;
}
a { color: #C2410C; }

.topbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; max-width: 760px; margin: 0 auto;
}
.brand { font-weight: 800; font-size: 19px; color: #EA580C; text-decoration: none; }
.brand span { color: #9CA3AF; font-weight: 600; }
.topbar a.back { font-size: 13.5px; font-weight: 700; text-decoration: none; }

.doc {
    max-width: 760px; margin: 0 auto 40px; padding: 28px 26px;
    background: #fff; border: 1px solid rgba(194, 65, 12, 0.14);
    border-radius: 20px;
}
.doc h1 { font-size: 24px; font-weight: 800; margin: 0 0 4px; }
.doc .updated { color: #8A7A6D; font-size: 12.5px; margin: 0 0 20px; }
.doc h2 { font-size: 17px; font-weight: 800; margin: 26px 0 8px; }
.doc p, .doc li { font-size: 14.5px; }
.doc ul { padding-left: 22px; margin: 8px 0; }
.doc .contact-box {
    margin-top: 26px; padding: 16px 18px;
    background: #FFF4E8; border-radius: 14px; font-size: 14px;
}

/* cookie settings */
.cat {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 16px 0; border-bottom: 1px solid rgba(194, 65, 12, 0.12);
}
.cat:last-of-type { border-bottom: none; }
.cat .txt { flex: 1; }
.cat b { font-size: 15px; }
.cat p { margin: 3px 0 0; color: #8A7A6D; font-size: 13px; }
.switch {
    position: relative; width: 48px; height: 28px; flex: 0 0 48px;
    background: #D1D5DB; border-radius: 999px; border: none;
    cursor: pointer; transition: background 0.2s; margin-top: 3px;
}
.switch::after {
    content: ''; position: absolute; top: 3px; left: 3px;
    width: 22px; height: 22px; border-radius: 50%; background: #fff;
    transition: left 0.2s;
}
.switch.on { background: #F97316; }
.switch.on::after { left: 23px; }
.switch:disabled { background: #FDBA74; cursor: not-allowed; }
.save-row { margin-top: 20px; display: flex; gap: 10px; align-items: center; }
.save-btn {
    background: #F97316; color: #fff; border: none; border-radius: 12px;
    padding: 11px 26px; font-weight: 800; font-size: 15px;
    font-family: inherit; cursor: pointer;
}
.saved-note { color: #0E9F6E; font-weight: 700; font-size: 13.5px; }

.foot-links {
    max-width: 760px; margin: 0 auto 40px; text-align: center;
    color: #8A7A6D; font-size: 12.5px;
}
.foot-links a { margin: 0 6px; }
