/* The Terms, Privacy Policy and account deletion pages (served at /terms, /privacy and /delete-account). */
:root { --ink: #1f2a24; --muted: #5d6b63; --line: #dfe6e1; --page: #f6f8f6; --card: #ffffff; --accent: #1f6f4a; --danger: #b3261e; color-scheme: light dark; }
@media (prefers-color-scheme: dark) { :root { --ink: #e6ece8; --muted: #a7b4ac; --line: #2c3731; --page: #111714; --card: #18201b; --accent: #7fd1a5; --danger: #f2b8b5; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", "Noto Sans Bengali", "Noto Sans", sans-serif; }
a { color: var(--accent); }
.legal-top { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.legal-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--card); font-weight: 700; }
main { max-width: 760px; margin: 0 auto; padding: 8px 16px 48px; }
article { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 20px 20px; margin-top: 16px; }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 16px 0 4px; }
h2 { font-size: 1.1rem; margin: 24px 0 6px; }
.legal-date { color: var(--muted); margin-top: 0; }
ul { padding-left: 1.3em; }
li { margin: 4px 0; }
/* /delete-account */
.delete-box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 20px 20px; margin-top: 16px; }
.delete-box h1 span { display: block; font-size: 1.15rem; font-weight: 600; color: var(--muted); }
#delete-form { display: grid; gap: 6px; max-width: 420px; }
#delete-form label { font-weight: 600; margin-top: 8px; }
#delete-form input:not([type="checkbox"]) { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--page); color: var(--ink); font: inherit; }
#delete-form .delete-confirm { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
#delete-form .delete-confirm input { width: 20px; height: 20px; margin-top: 3px; flex: 0 0 auto; }
#delete-button { min-height: 48px; margin-top: 12px; padding: 10px 16px; border: 0; border-radius: 24px; background: var(--danger); color: var(--card); font: inherit; font-weight: 700; cursor: pointer; }
#delete-button:disabled { opacity: 0.6; cursor: wait; }
#delete-status { min-height: 1.6em; margin: 8px 0 0; }
#delete-status.error { color: var(--danger); }
/* The /takedown page: the same form as /delete-account, with a description box and a choice. */
#takedown-form { display: grid; gap: 6px; max-width: 520px; }
#takedown-form label { font-weight: 600; margin-top: 8px; }
#takedown-form input:not([type="checkbox"]):not([type="radio"]), #takedown-form textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--page); color: var(--ink); font: inherit; }
#takedown-form .delete-confirm { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
#takedown-form .delete-confirm input { width: 20px; height: 20px; margin-top: 3px; flex: 0 0 auto; }
.takedown-choice { display: grid; gap: 4px; margin: 8px 0 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; }
.takedown-choice label { display: flex; align-items: center; gap: 8px; font-weight: 400 !important; margin-top: 0 !important; }
#takedown-button { min-height: 48px; margin-top: 12px; padding: 10px 16px; border: 0; border-radius: 24px; background: var(--accent, #0b7a5f); color: var(--card); font: inherit; font-weight: 700; cursor: pointer; }
#takedown-button:disabled { opacity: 0.6; cursor: wait; }
#takedown-status { min-height: 1.6em; margin: 8px 0 0; }
#takedown-status.error { color: var(--danger); }
