/* Privacy Policy, Terms of Service and Delete account, dressed like the app's icon: white ground,
   ink text, serif headings, the B-and-leaf logo, and the logo's violet -> orchid -> deep purple
   gradient on the brand name, the top strip and the buttons. */

:root {
  --ink: #15151a;
  --muted: #6b6b76;
  /* Sampled from the app icon. */
  --accent: #914ffa;
  --accent-mid: #af47ee;
  --accent-end: #6726d0;
  --gradient: linear-gradient(90deg, var(--accent), var(--accent-mid) 55%, var(--accent-end));
  --ground: #ffffff;
  --card: #f7f4fd;
  --line: #e6e1f2;
  --notice: #f6f1fe;
  --notice-line: #e0d2fb;
  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

/* A slim gradient strip across the top of every page. */
body::before {
  background: var(--gradient);
  content: "";
  display: block;
  height: 5px;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  padding-bottom: 16px;
}

/* The logo beside the name, at the top of every page. */
.brandbar {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.brandbar img { border-radius: 12px; display: block; height: 44px; width: 44px; }
.brandbar .brand { font-size: 1.5rem; margin: 0; }

footer {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 20px;
  text-align: center;
}

.brandbar-center { justify-content: center; margin-bottom: 10px; }
footer .brandbar img { height: 40px; width: 40px; }
footer .brand { font-size: 1.35rem; }

/* The page links wear the same gradient as the wordmark. */
.footer-links { color: var(--muted); font-size: 0.95rem; margin: 0; }
.footer-links span { margin: 0 10px; }
.footer-links a {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  text-decoration: none;
}
.footer-links a:hover { filter: brightness(1.15); }

.brand {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 4px;
}

h1, h2, h3 { font-family: var(--serif); }
h1 { font-size: 2rem; font-weight: 800; line-height: 1.2; margin: 0 0 6px; }
h2 { font-size: 1.25rem; font-weight: 700; margin: 32px 0 8px; }
h3 { font-size: 1.02rem; font-weight: 700; margin: 20px 0 6px; }
p, ul { margin: 0 0 12px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }
li ul { margin-top: 6px; }

.updated { color: var(--muted); font-size: 0.9rem; margin: 0; }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-end); }

.notice {
  background: var(--notice);
  border: 1px solid var(--notice-line);
  border-radius: 18px;
  margin: 20px 0;
  padding: 14px 16px 2px;
}

nav {
  background: var(--card);
  border-radius: 18px;
  margin: 20px 0;
  padding: 4px 18px 10px;
}

nav h2 { font-size: 1.05rem; margin: 12px 0 6px; }
nav ol { margin: 0; padding-left: 22px; }
nav li { margin-bottom: 2px; }

.table-wrap {
  margin: 0 0 12px;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 480px;
  width: 100%;
}

th, td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px 10px 0;
  text-align: left;
  vertical-align: top;
}

th { color: var(--muted); font-weight: 600; }

/* --- Interactive pages (delete-account) --- */

.muted { color: var(--muted); }

section { margin: 24px 0; }

details {
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-top: 14px;
  padding: 10px 14px;
}

details summary {
  cursor: pointer;
  font-weight: 600;
}

details[open] summary { margin-bottom: 10px; }

.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  max-width: 360px;
}

.stack label { font-size: 0.85rem; font-weight: 600; }

input[type="text"], input[type="password"] {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font: inherit;
  padding: 13px 16px;
}

input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Pill buttons; the main one is the app's gradient. */
.btn {
  background: var(--gradient);
  border: none;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 14px 22px;
}

.btn:hover:not(:disabled) { filter: brightness(1.06); }
.btn:disabled { cursor: not-allowed; opacity: 0.5; }

/* Deleting the account is the page's one primary action, so it wears the same gradient. */
.btn-danger { background: var(--gradient); }

.btn-ghost {
  background: var(--card);
  color: var(--ink);
}

#g_id_signin { margin-top: 14px; }
