/*
 * Shared styles for the content pages (legal pages, Green, Team, How it works).
 * Pages opt in with <body class="rz-doc ..."> plus one of:
 *   rz-doc-legal  _tcpa, _priv, _disclaimer, _tos, _verification_policy, _gdpr
 *   rz-doc-green  _green      rz-doc-team  _team      rz-doc-how  _how
 *   rz-doc-page   _about, _what, _why, _faq (content in one white card)
 * Matches the site theme: light page, white cards, navy text, blue accents.
 */

:root {
  --doc-ink: #1d2530;
  --doc-text: #3b4652;
  --doc-muted: #5f6b77;
  --doc-navy: #03446A;
  --doc-line: #e1e7ee;
  --doc-bg: #f3f6f9;
  --doc-tint: #eef7ff;
  --doc-green: #1f8a4c;
  --doc-green-tint: #e8f5ee;
}

body.rz-doc {
  background: var(--doc-bg);
  color: var(--doc-text);
}

/* ---------- Page title + "Last updated" ---------- */
.rz-doc .shadows {
  margin: 44px auto 0;
  padding: 0 16px;
  max-width: 900px;
  font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--doc-ink) !important;
  text-align: center;
  text-shadow: none;
  text-transform: none;          /* renteez_style.css sets uppercase + a 150% first letter */
  text-wrap: balance;
}

.rz-doc .shadows::first-letter {
  font-size: 100%;
  color: inherit;
}

.rz-doc .shadows:hover {
  text-shadow: none;
}

.rz-doc .shadows + h2,
.rz-doc .shadows + h3 {
  display: table;
  margin: 12px auto 28px !important;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--doc-tint);
  color: var(--doc-navy) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  text-align: center;
}

/* ---------- Legal pages: text in a centred white card ---------- */
.rz-doc-legal .container {
  max-width: 900px;
  margin: 8px auto 56px;
  padding: 40px 48px;
  border: 1px solid var(--doc-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(3, 68, 106, 0.06);
}

/* _tos puts the title inside the card */
.rz-doc-legal .container:has(> .shadows) {
  margin-top: 36px;
}

.rz-doc-legal .container > .shadows {
  margin-top: 4px;
  padding: 0;
}

.rz-doc-legal .container p,
.rz-doc-legal .container li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--doc-text);
}

.rz-doc-legal .container p {
  margin: 0 0 14px;
}

.rz-doc-legal .container h2,
.rz-doc-legal .container .section-title[aria-level="2"] {
  margin: 34px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--doc-line);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--doc-ink);
}

.rz-doc-legal .container h3,
.rz-doc-legal .container .section-title[aria-level="3"] {
  margin: 24px 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--doc-navy);
}

.rz-doc-legal .container h4 {
  margin: 18px 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--doc-ink);
}

.rz-doc-legal .container > h2:first-of-type,
.rz-doc-legal .container > .section-title:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.rz-doc-legal .container .section-title a {
  color: inherit;
  text-decoration: none;
}

.rz-doc-legal .container ul,
.rz-doc-legal .container ol {
  margin: 6px 0 16px;
  padding-left: 1.4rem;
}

.rz-doc-legal .container li {
  margin: 4px 0;
}

.rz-doc-legal .container li::marker {
  color: var(--primary);
}

.rz-doc-legal .container a:not(.btn) {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.rz-doc-legal .container a:not(.btn):hover {
  text-decoration: underline;
}

.rz-doc-legal .container strong {
  color: var(--doc-ink);
}

.rz-doc-legal .container table {
  width: 100%;
  margin: 12px 0 20px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.rz-doc-legal .container th,
.rz-doc-legal .container td {
  padding: 10px 12px;
  border: 1px solid var(--doc-line);
  text-align: left;
  vertical-align: top;
}

.rz-doc-legal .container th {
  background: var(--doc-tint);
  color: var(--doc-navy);
}

/* ---------- Green ---------- */
.rz-doc-green .green_header {
  margin: 0;
  padding: 64px 20px 56px;
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(31, 138, 76, 0.35), transparent 70%),
    linear-gradient(135deg, #0f1b26 0%, #13324a 100%);
  color: #fff;
  text-align: center;
}

.rz-doc-green .green_header h1 {
  max-width: 820px;
  margin: 0 auto 12px;
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  text-wrap: balance;
}

.rz-doc-green .green_header p {
  display: inline-block;
  margin: 0;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #c9f0d9;
  font-size: 0.95rem;
  font-weight: 600;
}

.rz-doc-green .green_section {
  max-width: 900px;
  margin: 24px auto;
  padding: 32px 40px;
  border: 1px solid var(--doc-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(3, 68, 106, 0.06);
  text-align: left;
}

.rz-doc-green .green_section h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--doc-ink);
}

.rz-doc-green .green_section p {
  line-height: 1.75;
  color: var(--doc-text);
  text-align: left;
}

.rz-doc-green .green_section img {
  display: block;
  margin: 16px auto;
  border-radius: 14px;
}

.rz-doc-green .icon-grid {
  gap: 14px;
  margin-top: 18px;
}

.rz-doc-green .icon-grid div {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid #cfe9da;
  border-radius: 14px;
  background: var(--doc-green-tint);
  color: var(--doc-ink);
  font-weight: 600;
}

.rz-doc-green .cta-buttons a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--doc-green);
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 8px 20px rgba(31, 138, 76, 0.25);
  transition: filter 0.2s ease;
}

.rz-doc-green .cta-buttons a:hover {
  filter: brightness(0.95);
}

.rz-doc-green .container-fluid {
  padding-bottom: 32px;
}

/* ---------- Team ---------- */
.rz-doc-team > .container,
.rz-doc-team .container:first-of-type {
  max-width: 1080px;
  margin-bottom: 56px;
  padding: 8px 28px 32px;
}

.rz-doc-team .row.mb-3 {
  align-items: center;
  margin: 0 0 20px !important;
  padding: 24px;
  border: 1px solid var(--doc-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(3, 68, 106, 0.06);
}

.rz-doc-team .image-container img {
  max-width: 220px;
  height: auto;
  box-shadow: 0 10px 26px rgba(3, 68, 106, 0.18);
}

.rz-doc-team .image-container h2 {
  margin: 14px 0 2px;
  font-size: 1.3rem !important;
  font-weight: 800;
  color: var(--doc-ink);
}

.rz-doc-team .row.mb-3 p {
  line-height: 1.75;
  color: var(--doc-text);
}

/* ---------- How it works ---------- */
.rz-doc-how section.position-relative {
  max-width: 1180px;
  margin: 0 auto 28px;
  padding: 12px 8px;
  border: 1px solid var(--doc-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(3, 68, 106, 0.06);
}

.rz-doc-how section.position-relative h4.display-5 {
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem) !important;
  font-weight: 800 !important;
  color: var(--doc-ink);
}

.rz-doc-how .cd-timeline-content {
  border-radius: 14px;
}

/* ---------- About / What / Why / FAQ: content in one white card ---------- */
.rz-doc-page > .container {
  max-width: 1080px;
  margin: 8px auto 56px;
  padding: 36px 44px;
  border: 1px solid var(--doc-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(3, 68, 106, 0.06);
}

.rz-doc-page > .container:has(> .shadows) {
  margin-top: 36px;
}

.rz-doc-page > .container > .shadows {
  margin-top: 4px;
  padding: 0;
}

/* Bootstrap's px-5 / py-5 blocks inside the card: tighter, even spacing */
.rz-doc-page .container-fluid.px-5,
.rz-doc-page .d-flex.px-5 {
  padding: 20px 0 !important;
}

.rz-doc-page .container-fluid + .container-fluid,
.rz-doc-page section + section {
  border-top: 1px solid var(--doc-line);
}

.rz-doc-page h1.display-6,
.rz-doc-page h3.display-6,
.rz-doc-page .fs-title {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.55rem) !important;
  font-weight: 800 !important;
  line-height: 1.3;
  color: var(--doc-ink) !important;
  text-align: left !important;
}

.rz-doc-page p,
.rz-doc-page li {
  line-height: 1.75;
  color: var(--doc-text);
  overflow-wrap: anywhere;   /* e.g. "BUSINESS/MARKETING/MANAGEMENT" on _about has no break points */
}

.rz-doc-page .text-justify,
.rz-doc-page p {
  text-align: left;
}

.rz-doc-page img.img-fluid,
.rz-doc-page .image-container img {
  max-width: 100%;
  height: auto;
  border: 0 !important;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(3, 68, 106, 0.14) !important;
}

.rz-doc-page .li-space-lg li,
.rz-doc-page .list-unstyled li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 6px 0;
}

.rz-doc-page .list-unstyled li i {
  color: var(--primary);
  font-size: 0.8rem;
}

.rz-doc-page a:not(.btn) {
  color: var(--primary);
  font-weight: 600;
}

/* FAQ: each question as a card (answers are always shown on this page) */
.rz-doc-page .collapse-content {
  display: grid;
  gap: 12px;
}

.rz-doc-page .my_collapse {
  margin: 0;
  padding: 18px 22px;
  border: 1px solid var(--doc-line);
  border-radius: 12px;
  background: #fbfdff;
}

.rz-doc-page .my_collapse .fs-title {
  margin: 0 0 8px;
  font-size: 1.08rem !important;
  cursor: default;
}

.rz-doc-page .my_collapse .inner-content ul {
  margin: 0;
  padding-left: 1.2rem;
}

.rz-doc-page .my_collapse li::marker {
  color: var(--primary);
}

/* ---------- Phones ---------- */
@media screen and (max-width: 767.98px) {
  .rz-doc .shadows {
    margin-top: 28px;
  }

  .rz-doc-legal .container,
  .rz-doc-page > .container,
  .rz-doc-green .green_section {
    width: auto;                 /* Bootstrap's width:100% plus these margins overflowed */
    margin-inline: 12px;
    padding: 24px 18px;
    border-radius: 14px;
  }

  .rz-doc-green .green_header {
    padding: 44px 16px 40px;
  }

  /* _green.php's own phone rule makes these 1.5em / 64px tall and non-wrapping. */
  .rz-doc-green .cta-buttons a {
    justify-content: center;
    max-width: calc(100% - 16px);
    font-size: 1rem;
    line-height: 1.3;
    white-space: normal;
  }

  .rz-doc-team > .container,
  .rz-doc-team .container:first-of-type {
    padding: 4px 12px 24px;
  }

  .rz-doc-team .row.mb-3 {
    padding: 18px 12px;
    text-align: center;
  }

  .rz-doc-how section.position-relative {
    margin-inline: 12px;
  }
}
