/* =====================================================================
   Terms of Use (public page, and the accept step after sign-in).
   Light look like Log In; colors come from styles.css.
   ===================================================================== */

body.hz-terms {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-sans);
}

body.hz-terms a {
  color: var(--accent);
}
body.hz-terms [hidden] {
  display: none !important;
}

.hzt-top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
body.hz-terms .hzt-brand {
  display: inline-flex;
  color: var(--text);
}
.hzt-logo {
  display: block;
  max-width: 46vw;
  height: auto;
}
.hzt-top-link {
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.hzt-top-link:hover {
  text-decoration: underline;
}

.hzt-main {
  box-sizing: border-box;
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 24px 40px;
}

.hzt-notice {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid rgba(214, 58, 79, 0.45);
  border-radius: 10px;
  background: rgba(214, 58, 79, 0.07);
  font-size: 15px;
}
.hzt-notice strong {
  font: 600 16px/1.3 var(--font-heading);
}
.hzt-accepted {
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px solid rgba(30, 158, 90, 0.45);
  border-radius: 10px;
  background: rgba(30, 158, 90, 0.08);
  font-size: 15px;
}

.hzt-doc {
  padding: 32px 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.hzt-doc h1 {
  margin: 0;
  font: 700 30px/1.2 var(--font-heading);
}
.hzt-meta {
  margin: 6px 0 22px;
  color: var(--muted);
  font-size: 14px;
}
.hzt-doc h2 {
  margin: 28px 0 8px;
  font: 600 19px/1.3 var(--font-heading);
}
.hzt-doc p,
.hzt-doc li {
  color: var(--text-secondary);
}
.hzt-doc p {
  margin: 0 0 12px;
}
.hzt-doc ul,
.hzt-doc ol {
  margin: 0 0 12px;
  padding-left: 22px;
}
.hzt-doc li {
  margin: 0 0 8px;
}
.hzt-doc section {
  scroll-margin-top: 80px;
}
.hzt-short {
  margin: 0 0 24px;
  padding: 16px 20px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f9fb;
}
.hzt-short h2 {
  margin: 0 0 8px;
  font-size: 17px;
}
.hzt-short p {
  font-size: 14px;
  color: var(--muted);
}
.hzt-caps {
  font-size: 14.5px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.hzt-legal {
  margin: 28px 0 0 !important;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted) !important;
}

/* The accept step: a bar that stays at the bottom of the window */
.hzt-accept {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin: 0;
  border-top: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 -10px 28px rgba(17, 23, 32, 0.08);
}
.hzt-accept-inner {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  max-width: 820px;
  margin: 0 auto;
  padding: 14px 24px;
}
.hzt-check {
  display: flex;
  flex: 1 1 360px;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
}
.hzt-check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}
.hzt-actions {
  display: flex;
  gap: 10px;
}
.hzt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font: 600 15px var(--font-sans);
  cursor: pointer;
}
.hzt-btn-primary {
  border: 0;
  background: var(--accent);
  color: #ffffff;
}
.hzt-btn-primary:hover:not(:disabled) {
  background: #c22f44;
}
.hzt-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.hzt-btn-secondary {
  border: 1px solid #c9d0d9;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
}
.hzt-btn-secondary:hover {
  background: var(--hover);
  color: var(--text);
}
.hzt-msg {
  flex-basis: 100%;
  margin: 0;
  color: var(--accent);
  font-size: 14px;
}

.hzt-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px 32px;
  color: var(--text-subtle);
  font-size: 13px;
}

@media (max-width: 640px) {
  .hzt-top {
    padding: 10px 16px;
  }
  .hzt-main {
    padding: 20px 16px 28px;
  }
  .hzt-doc {
    padding: 22px 18px;
  }
  .hzt-doc h1 {
    font-size: 25px;
  }
  .hzt-accept-inner {
    padding: 12px 16px;
  }
  .hzt-actions {
    width: 100%;
  }
  .hzt-actions .hzt-btn {
    flex: 1;
  }
  .hzt-foot {
    padding: 0 16px 24px;
  }
}

@media print {
  .hzt-top,
  .hzt-accept,
  .hzt-notice,
  .hzt-accepted {
    display: none !important;
  }
  .hzt-doc {
    border: 0;
    padding: 0;
  }
}
