/* Public legal document: readable independently of dashboard and authentication. */
*{box-sizing:border-box}
body.terms-page{margin:0;padding:0 24px 36px;font-family:'Segoe UI',Arial,sans-serif;font-size:17px;line-height:1.8}
.terms-header{max-width:1040px;margin:auto;min-height:92px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--border)}
.terms-brand{display:flex;align-items:center;gap:10px;color:var(--text);text-decoration:none;font-size:24px;font-weight:800;letter-spacing:-.7px}
.terms-brand>span>span{color:var(--purple)}
.terms-actions{display:flex;align-items:center;gap:16px}
.terms-back{font-size:15px;text-decoration:none;color:var(--muted);font-weight:600}
.terms-layout{max-width:920px;margin:auto}
.terms-intro{padding:48px 0 24px}
.terms-eyebrow{color:var(--purple);font-size:13px;font-weight:800;letter-spacing:1.5px}
.terms-intro h1{font-size:clamp(32px,5vw,46px);line-height:1.2;letter-spacing:-1.2px;margin:12px 0 16px}
.terms-intro p{margin:8px 0;color:var(--muted)}
.terms-intro .terms-date{font-size:14px;margin-top:16px}
.terms-index{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 28px}
.terms-index a{padding:8px 13px;border:1px solid var(--border);border-radius:9px;color:var(--text);background:var(--panel);font-size:14px;font-weight:600;text-decoration:none}
.terms-index a:hover{border-color:var(--purple);color:var(--purple)}
.terms-document{background:var(--panel);border:1px solid var(--border);border-radius:18px;padding:8px 38px 26px;overflow-wrap:anywhere}
.terms-document section{scroll-margin-top:24px;padding:24px 0 6px}
.terms-document section+section{border-top:1px solid var(--border);margin-top:22px}
.terms-document h2{font-size:23px;line-height:1.45;letter-spacing:-.3px;margin:0 0 18px}
.terms-document p{margin:12px 0}
.terms-document ul{padding-left:24px;margin:12px 0}.terms-document li{margin:9px 0}
.terms-document a{color:var(--purple);text-underline-offset:4px}
.terms-provider{margin:0}.terms-provider>div{display:grid;grid-template-columns:180px 1fr;gap:14px;padding:7px 0}
.terms-provider dt{color:var(--muted);font-size:15px}.terms-provider dd{margin:0;font-weight:600}
.terms-highlight{padding:16px 20px;margin:20px 0;background:var(--bg);border:1px solid var(--border);border-radius:10px}
.terms-bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:28px 0;font-size:14px;color:var(--muted)}
.terms-bottom a{color:var(--purple);text-decoration:none;font-weight:600}
.terms-skip{position:absolute;top:-100px;left:20px;padding:10px;background:var(--panel);z-index:2}.terms-skip:focus{top:10px}
@media(max-width:600px){
  body.terms-page{padding:0 16px 24px;font-size:16px;line-height:1.8}
  .terms-header{min-height:76px}.terms-brand{font-size:21px;gap:6px}.terms-brand img{width:30px;height:30px}
  .terms-back{font-size:13px}.terms-actions{gap:8px}.terms-actions .theme-toggle{width:36px;height:36px}
  .terms-intro{padding:32px 0 20px}.terms-intro h1{font-size:34px}.terms-date{line-height:1.7}
  .terms-index{gap:8px}.terms-index a{font-size:13px;padding:7px 10px}
  .terms-document{padding:2px 20px 20px;border-radius:14px}.terms-document h2{font-size:21px}
  .terms-provider>div{display:block;padding:8px 0}.terms-provider dt{font-size:14px}.terms-provider dd{font-size:16px}
  .terms-highlight{padding:14px}.terms-bottom{flex-direction:column;gap:12px}
}
@media print{
  body.terms-page{background:white!important;color:black!important;padding:0;font-size:11pt;line-height:1.55}
  .terms-actions,.terms-index,.terms-bottom,.terms-skip{display:none}
  .terms-document{padding:0;border:0;background:white;color:black}.terms-intro{padding:20px 0}
  .terms-document h2{break-after:avoid}.terms-provider>div{break-inside:avoid}
  .terms-highlight{background:white;border-color:#aaa}a{color:inherit!important}
}
