/* ==============================================
   Timpi Legal Hub — Shared Styles
   legal.timpi.io
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #f5f3ee;
  color: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
a:hover { opacity: 0.65; }

/* ── Header ──────────────────────────────────── */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e3dc;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 28px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #1a1a1a;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 6px;
  letter-spacing: 0;
}

.logo-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 15px;
  color: #1a1a1a;
  text-transform: lowercase;
}

.header-divider {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: #d5d3cc;
}

.header-section-name {
  font-size: 14px;
  color: #666;
  font-weight: 400;
}

.back-link {
  font-size: 13px;
  color: #555;
  text-decoration: none;
  white-space: nowrap;
}

.back-link:hover { color: #1a1a1a; opacity: 1; }

/* ── Breadcrumb ───────────────────────────────── */

.breadcrumb {
  background: #ffffff;
  border-bottom: 1px solid #e5e3dc;
}

.breadcrumb-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 9px 28px;
  font-size: 13px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-inner a { color: #888; text-decoration: none; }
.breadcrumb-inner a:hover { color: #1a1a1a; opacity: 1; }
.breadcrumb-inner .sep { color: #bbb; }
.breadcrumb-inner .current { color: #1a1a1a; }

/* ── Page wrapper ─────────────────────────────── */

.page-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 28px 80px;
}

/* ── Hero ─────────────────────────────────────── */

.hero { padding: 48px 0 36px; }

.hero h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 18px;
  line-height: 1.2;
}

.hero p {
  margin: 0 0 12px;
  font-size: 15px;
  color: #333;
  max-width: 680px;
}

.hero p:last-child { margin-bottom: 0; }

/* ── Properties band ─────────────────────────── */

.properties-band {
  background: #efeee8;
  border: 1px solid #e5e3dc;
  border-radius: 10px;
  padding: 20px 24px 22px;
  margin-bottom: 40px;
}

.band-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #888;
  margin: 0 0 13px;
}

.prop-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.prop-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  background: #ffffff;
  border: 1px solid #e5e3dc;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
}

.prop-tag:hover { border-color: #aaa; opacity: 1; }

.prop-tag svg { width: 13px; height: 13px; opacity: 0.55; flex-shrink: 0; }

.band-caption {
  margin-top: 14px;
  font-size: 12.5px;
  color: #888;
  line-height: 1.5;
}

/* ── Content sections ────────────────────────── */

.content-section { margin-bottom: 38px; }

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #888;
  margin: 0 0 14px;
}

/* ── Card grids ──────────────────────────────── */

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.card-grid-1 { display: grid; grid-template-columns: 1fr; gap: 10px; }

.card {
  background: #ffffff;
  border: 1px solid #e5e3dc;
  border-radius: 9px;
  padding: 18px 20px;
  text-decoration: none;
  display: block;
  transition: border-color 0.12s;
}

.card:hover { border-color: #aaa; opacity: 1; }

.card.card-no-link { cursor: default; }
.card.card-no-link:hover { border-color: #e5e3dc; }

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 6px;
}

.card-desc { font-size: 13px; color: #555; margin: 0; line-height: 1.5; }

.card-coming-soon {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  color: #aaa;
  background: #f5f3ee;
  border: 1px solid #e5e3dc;
  border-radius: 4px;
  padding: 2px 7px;
}

/* ── Table wrap ──────────────────────────────── */

.table-wrap {
  border: 1px solid #e5e3dc;
  border-radius: 9px;
  overflow: hidden;
}

/* ── Contact table ───────────────────────────── */

.contact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.contact-table td { padding: 13px 18px; background: #ffffff; }
.contact-table tr + tr td { border-top: 1px solid #e5e3dc; }
.contact-table td:first-child { color: #555; width: 55%; }

.contact-table td:last-child {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 13px;
}

.contact-table a { text-decoration: none; color: #1a1a1a; }
.contact-table a:hover { text-decoration: underline; opacity: 1; }

/* ── Updates table ───────────────────────────── */

.updates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.updates-table th {
  padding: 10px 18px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  background: #f5f3ee;
  border-bottom: 1px solid #e5e3dc;
}

.updates-table td { padding: 13px 18px; background: #ffffff; }
.updates-table tr + tr td { border-top: 1px solid #e5e3dc; }

/* ── Closing / About section ─────────────────── */

.closing-section {
  margin-top: 8px;
  padding: 28px 30px;
  background: #ffffff;
  border: 1px solid #e5e3dc;
  border-radius: 10px;
}

.closing-section h2 { font-size: 16px; font-weight: 600; margin: 0 0 12px; }

.closing-section p {
  font-size: 14px;
  color: #444;
  margin: 0 0 10px;
  line-height: 1.65;
}

.closing-section p:last-child { margin-bottom: 0; }

/* ── Sub-page document header ────────────────── */

.doc-header {
  padding: 40px 0 28px;
  border-bottom: 1px solid #e5e3dc;
  margin-bottom: 36px;
}

.doc-header h1 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.2;
}

.doc-meta {
  font-size: 13px;
  color: #888;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
}

.doc-meta-row { margin-bottom: 2px; }

.doc-meta-dot {
  display: inline-block;
  margin: 0 8px;
  color: #ccc;
}

.doc-applies {
  margin-top: 8px;
  font-size: 13px;
  color: #888;
}

/* ── Document body ───────────────────────────── */

.doc-body { max-width: 700px; }

.doc-body h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 40px 0 12px;
  color: #1a1a1a;
}

.doc-body h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 26px 0 8px;
  color: #1a1a1a;
}

.doc-body p { margin: 0 0 14px; color: #333; line-height: 1.7; }

.doc-body ul, .doc-body ol { margin: 0 0 14px; padding-left: 22px; }
.doc-body li { margin-bottom: 6px; color: #333; line-height: 1.65; }
.doc-body a { color: #1a1a1a; }

.doc-body .caps-warn {
  font-size: 13.5px;
  line-height: 1.65;
  color: #333;
}

/* Info block (agent details, etc.) */
.info-block {
  background: #efeee8;
  border: 1px solid #e5e3dc;
  border-radius: 9px;
  padding: 18px 22px;
  margin: 20px 0;
}

.info-block .ib-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #888;
  margin-bottom: 10px;
}

.info-block p { font-size: 14px; color: #444; margin: 0 0 12px; }

.info-block table { width: 100%; border-collapse: collapse; font-size: 14px; }
.info-block table td { padding: 5px 0; vertical-align: top; }
.info-block table td:first-child { color: #666; width: 110px; font-size: 13px; }
.info-block table td:last-child { font-weight: 500; }
.info-block table a { font-weight: 400; }

/* Pending / to-be-confirmed values awaiting real data before launch */
.pending { color: #9a8b00; font-style: italic; font-weight: 400; }

/* Numbered steps */
.steps-list { margin: 16px 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }

.steps-list li {
  display: flex;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e5e3dc;
  border-radius: 9px;
  padding: 16px 18px;
  align-items: flex-start;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  background: #f5f3ee;
  border: 1px solid #e5e3dc;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.step-title { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.step-desc { font-size: 13px; color: #555; margin: 0; }

/* Process cards */
.process-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0 24px;
}

.process-card {
  background: #ffffff;
  border: 1px solid #e5e3dc;
  border-radius: 9px;
  padding: 16px 18px;
}

.process-card .pc-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 8px;
}

.process-card p { font-size: 13px; color: #333; margin: 0; line-height: 1.55; }

/* See also / cross-references */
.see-also {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid #e5e3dc;
}

.see-also-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #888;
  margin: 0 0 12px;
}

.see-also-links { display: flex; flex-wrap: wrap; gap: 8px; }

.see-also-links a {
  display: inline-block;
  padding: 6px 13px;
  background: #ffffff;
  border: 1px solid #e5e3dc;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  color: #1a1a1a;
}

.see-also-links a:hover { border-color: #aaa; opacity: 1; }

/* ── Form styles ─────────────────────────────── */

.form-intro {
  font-size: 15px;
  color: #333;
  margin-bottom: 28px;
  max-width: 600px;
}

.form-prereqs {
  background: #efeee8;
  border: 1px solid #e5e3dc;
  border-radius: 9px;
  padding: 18px 22px;
  margin-bottom: 28px;
  max-width: 600px;
}

.form-prereqs h3 { font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.form-prereqs ul { margin: 0; padding-left: 18px; }
.form-prereqs li { font-size: 13.5px; color: #444; margin-bottom: 4px; }

.form-wrap { max-width: 600px; }

.form-field { margin-bottom: 20px; }

.form-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #1a1a1a;
}

.req { color: #c00; margin-left: 2px; }

.form-field .helper {
  font-size: 12.5px;
  color: #888;
  margin: 3px 0 6px;
  line-height: 1.5;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d5d3cc;
  border-radius: 7px;
  font-size: 14px;
  font-family: inherit;
  background: #ffffff;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.12s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: #888; }

.form-field textarea { resize: vertical; min-height: 100px; }

.radio-group, .checkbox-group { display: flex; flex-direction: column; gap: 9px; }

.radio-group label, .checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
}

.radio-group input, .checkbox-group input {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: #1a1a1a;
}

.confirmations {
  margin: 28px 0;
  padding: 20px 22px;
  background: #efeee8;
  border: 1px solid #e5e3dc;
  border-radius: 9px;
}

.confirmations .form-field { margin-bottom: 10px; }
.confirmations .form-field:last-child { margin-bottom: 0; }

.btn-submit {
  display: inline-block;
  padding: 11px 26px;
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}

.btn-submit:hover { background: #333; opacity: 1; color: #fff; }

.form-sent-note {
  margin: 14px 0 0;
  padding: 12px 16px;
  max-width: 600px;
  background: #eef3ee;
  border: 1px solid #cfe0cf;
  border-radius: 7px;
  font-size: 13px;
  color: #2f4a2f;
  line-height: 1.55;
}

.post-submit {
  margin-top: 32px;
  padding: 20px 22px;
  background: #ffffff;
  border: 1px solid #e5e3dc;
  border-radius: 9px;
  max-width: 600px;
}

.post-submit h3 { font-size: 14px; font-weight: 600; margin: 0 0 10px; }
.post-submit ol { margin: 0; padding-left: 18px; }
.post-submit li { font-size: 13.5px; color: #444; margin-bottom: 6px; line-height: 1.55; }
.post-submit p { font-size: 13px; color: #666; margin: 12px 0 0; }

/* ── Footer ──────────────────────────────────── */

.site-footer {
  border-top: 1px solid #e5e3dc;
  background: #ffffff;
  margin-top: 60px;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 36px 28px 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 24px;
}

.footer-col-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #888;
  margin: 0 0 10px;
}

.footer-about-text { font-size: 13px; color: #555; line-height: 1.6; }

.footer-props { font-size: 13px; color: #555; line-height: 1.8; }
.footer-props a { color: #555; text-decoration: none; }
.footer-props a:hover { color: #1a1a1a; opacity: 1; }
.footer-props .sep { margin: 0 5px; color: #ccc; }

.footer-legal {
  padding: 18px 0;
  border-top: 1px solid #e5e3dc;
  font-size: 13px;
}

.footer-legal .footer-col-label { margin-bottom: 10px; }
.footer-legal a { color: #555; text-decoration: none; }
.footer-legal a:hover { color: #1a1a1a; opacity: 1; }
.footer-legal .sep { margin: 0 8px; color: #ccc; }

.footer-copy {
  padding: 16px 0 26px;
  border-top: 1px solid #e5e3dc;
  font-size: 12.5px;
  color: #999;
}

/* ── Responsive ──────────────────────────────── */

@media (max-width: 660px) {
  .header-section-name, .header-divider { display: none; }

  .card-grid, .card-grid-2, .process-cards { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: 24px; }

  .page-wrap { padding: 0 18px 60px; }
  .header-inner, .breadcrumb-inner, .footer-inner { padding-left: 18px; padding-right: 18px; }
}
