/* Shared styles for the Terms of Service and Privacy Policy pages.
   Colors match home.html and app.html. */
:root{
  --bg:#eef0e6; --surface:#ffffff; --ink:#1e2a20; --ink-soft:#57624f; --border:#d4d8c5;
  --accent:#2e6f4e; --gold:#a97a24; --brand-grey:#8a8279;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#121b15; --surface:#1a2620; --ink:#e8eee3; --ink-soft:#a7b39d; --border:#2c3b30;
    --accent:#6fc08e; --gold:#dcae5f; --brand-grey:#b3aca3;
  }
  :root:not([data-theme="light"]) .brand img{ background:#f4f4f4; }
}
:root[data-theme="dark"]{
  --bg:#121b15; --surface:#1a2620; --ink:#e8eee3; --ink-soft:#a7b39d; --border:#2c3b30;
  --accent:#6fc08e; --gold:#dcae5f; --brand-grey:#b3aca3;
}
*{ box-sizing:border-box; }
body{ margin:0; background:var(--bg); color:var(--ink); font-family:"Montserrat",-apple-system,BlinkMacSystemFont,sans-serif; line-height:1.65; }
a{ color:var(--accent); }
.wrap{ max-width:820px; margin:0 auto; padding-inline:20px; }
.topbar{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding-block:18px; }
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.brand img{ width:40px; height:40px; border-radius:50%; }
.brand-word{ font-size:24px; font-weight:700; letter-spacing:-.02em; color:var(--gold); line-height:1; }
.brand-word span{ font-weight:400; color:var(--brand-grey); }
.topbar-link{ font-size:13px; font-weight:600; color:var(--gold); text-decoration:none; }
.doc{ background:var(--surface); border:1px solid var(--border); border-radius:18px; padding:32px 36px; margin:8px 0 28px; }
.doc h1{ font-size:30px; line-height:1.15; margin:0 0 6px; }
.doc .updated{ color:var(--ink-soft); font-size:13.5px; margin:0 0 22px; }
.doc .summary{ background:var(--bg); border-radius:12px; padding:14px 18px; font-size:14.5px; margin:0 0 24px; }
.doc h2{ font-size:18px; margin:28px 0 8px; }
.doc p, .doc li{ font-size:15px; color:var(--ink); }
.doc ul{ padding-left:22px; }
.doc li{ margin-bottom:6px; }
.footer{ border-top:1px solid var(--border); padding:22px 0 40px; text-align:center; color:var(--brand-grey); font-size:13px; }
.footer a{ color:var(--brand-grey); }
@media (max-width:480px){
  .wrap{ padding-inline:16px; }
  .brand-word{ font-size:20px; }
  .brand img{ width:34px; height:34px; }
  .doc{ padding:22px 18px; }
  .doc h1{ font-size:25px; }
}
@media print{
  body{ background:#fff; }
  .topbar, .footer{ display:none; }
  .doc{ border:0; padding:0; }
}
