/* ==========================================================
   Riverport Business Club - Utility pages
   Shared by: Terms of Use, Privacy Policy, Cookie Policy,
   404 (not found) and Thank You (form success)
   ========================================================== */

/* ---------- Slim hero for policy pages ---------- */
.rp-phero--slim .rp-phero__title { max-width: 28ch; }

/* ---------- Policy layout: contents sidebar + document ---------- */
.ut-legal__grid { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

.ut-toc { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.ut-toc__box { padding: 1.4rem 1.25rem; border-radius: var(--radius-lg); background: var(--grey); }
.ut-toc__title { margin: 0 0 0.85rem; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.ut-toc__list { list-style: none; margin: 0; padding: 0; counter-reset: ut; display: grid; gap: 0.15rem; }
.ut-toc__list li { counter-increment: ut; }
.ut-toc__list a {
  display: flex; gap: 0.6rem; padding: 0.45rem 0.6rem; border-radius: 8px;
  font-size: 0.92rem; font-weight: 600; line-height: 1.35; color: #3a3a3a; text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.ut-toc__list a::before { content: counter(ut) "."; flex-shrink: 0; min-width: 1.4em; color: var(--brand-deep); font-weight: 800; }
.ut-toc__list a:hover { background: var(--white); color: #1f1f1f; }

.ut-doc { min-width: 0; max-width: 78ch; }
.ut-doc__updated { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0 1.75rem; padding: 0.4rem 0.9rem; border-radius: 999px; background: var(--brand-tint); color: var(--brand-deep); font-size: 0.85rem; font-weight: 700; }
.ut-doc__intro p { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.22rem); font-weight: 500; color: #3a3a3a; line-height: 1.65; }

.ut-doc__section { padding-top: 2rem; margin-top: 2rem; border-top: 1px solid var(--grey-line); scroll-margin-top: calc(var(--header-h) + 1.25rem); }
.ut-doc__section h2 { display: flex; align-items: center; gap: 0.75rem; font-size: var(--fs-h3); font-weight: 800; margin: 0 0 1rem; }
.ut-doc__section h2::before { content: ""; flex-shrink: 0; width: 6px; height: 1.1em; border-radius: 3px; background: var(--brand); }
.ut-doc p, .ut-doc li { color: #3a3a3a; line-height: 1.75; }
.ut-doc p { margin: 0 0 1rem; }
.ut-doc ul { margin: 0 0 1.1rem; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.ut-doc ul li { position: relative; padding-left: 1.5rem; }
.ut-doc ul li::before { content: ""; position: absolute; left: 0.2rem; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.ut-doc strong { color: #2b2b2b; }
.ut-doc a { color: #2b2b2b; font-weight: 700; text-decoration-color: var(--brand); text-underline-offset: 3px; overflow-wrap: anywhere; }
.ut-doc a:hover { color: var(--brand-deep); }
.ut-doc .rp-email { display: inline; }
.ut-doc .rp-email a { display: inline; white-space: normal; }
.ut-doc .rp-email__link .fa-envelope { display: none; }

.ut-related { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 2.5rem; padding: 1.25rem 1.4rem; border-radius: var(--radius-lg); background: var(--grey); }
.ut-related__title { margin: 0 0.5rem 0 0; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.ut-doc a.ut-related__link { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1rem; border-radius: 999px; background: var(--white); text-decoration: none; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease); }
.ut-doc a.ut-related__link i { color: var(--brand-deep); }
.ut-doc a.ut-related__link:hover { color: #1f1f1f; transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Status pages: 404 + thank you ---------- */
.ut-status { position: relative; isolation: isolate; overflow: hidden; min-height: min(70vh, 720px); display: flex; align-items: center; background: linear-gradient(180deg, var(--white) 0%, var(--grey) 100%); }
.ut-status__circles { position: absolute; z-index: -1; pointer-events: none; aspect-ratio: 1; width: clamp(280px, 34vw, 520px); right: clamp(-200px, -9vw, -80px); top: clamp(-180px, -9vw, -70px); }
.ut-status__circles span { position: absolute; border-radius: 50%; width: 52%; aspect-ratio: 1; }
.ut-status__circles span:nth-child(1) { left: 22%; top: 4%; background: rgba(85, 85, 85, 0.09); }
.ut-status__circles span:nth-child(2) { left: 6%; top: 40%; background: rgba(254, 104, 191, 0.2); }
.ut-status__circles span:nth-child(3) { left: 40%; top: 38%; background: rgba(147, 147, 147, 0.14); }

.ut-status__inner { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 720px; }
.ut-status__code { margin: 0 0 0.5rem; font-size: clamp(5rem, 3rem + 10vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--charcoal); }
.ut-status__code::first-letter { color: var(--brand); }
.ut-status__icon { display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%; background: var(--charcoal); color: var(--brand); font-size: 2.2rem; margin-bottom: 1.5rem; box-shadow: 0 0 0 8px var(--brand-tint); }
.ut-status__title { font-size: var(--fs-h1); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 1rem; }
.ut-status__text { margin: 0 0 2rem; max-width: 52ch; color: var(--muted); font-size: 1.1rem; line-height: 1.65; }
.ut-status__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem; }
.ut-status__note { display: flex; gap: 0.55rem; align-items: baseline; margin: 2rem 0 0; color: var(--muted); }
.ut-status__note i { color: var(--brand-deep); }
.ut-status__note a { color: #2b2b2b; font-weight: 700; text-decoration-color: var(--brand); text-underline-offset: 3px; }

.ut-links { width: 100%; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--grey-line); }
.ut-links__title { margin: 0 0 1rem; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.ut-links__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.ut-links__grid a {
  display: flex; align-items: center; gap: 0.65rem; height: 100%; padding: 0.9rem 1rem; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--grey-line); color: #2b2b2b; font-weight: 700; line-height: 1.3; text-decoration: none; text-align: left;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.ut-links__grid a i { color: var(--brand); width: 1.1rem; text-align: center; }
.ut-links__grid a:hover { border-color: rgba(254, 104, 191, 0.55); box-shadow: var(--shadow-sm); transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .ut-legal__grid { grid-template-columns: minmax(0, 1fr); }
  .ut-toc { position: static; }
  .ut-toc__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0.75rem; }
}
@media (max-width: 640px) {
  .ut-toc__list { grid-template-columns: minmax(0, 1fr); }
  .ut-links__grid { grid-template-columns: minmax(0, 1fr); }
  .ut-status__actions { width: 100%; flex-direction: column; }
  .ut-status__actions .rp-btn { width: 100%; justify-content: center; }
  .ut-related { flex-direction: column; align-items: stretch; }
  .ut-doc a.ut-related__link { justify-content: center; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .ut-links__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Sitemap ---------- */
.sm-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 1.25rem; }
.sm-group, .sm-members { min-width: 0; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--grey); }
.sm-group__title { display: flex; align-items: center; gap: 0.65rem; margin: 0 0 1rem; font-size: 1.15rem; font-weight: 800; }
.sm-group__icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--charcoal); color: var(--brand); font-size: 0.85rem; }
.sm-count { margin-left: 0.25rem; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--brand); color: var(--white); font-size: 0.8rem; }
.sm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.sm-list li { min-width: 0; break-inside: avoid; }
.sm-list a { display: inline-flex; align-items: baseline; padding: 0.3rem 0; color: #2b2b2b; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.sm-list a::before { content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-right: 0.55rem; font-size: 0.65em; color: var(--brand); flex-shrink: 0; }
.sm-list a:hover { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }
.sm-list--cols { display: block; columns: 3 240px; column-gap: 2rem; }
.sm-list--cols li { margin-bottom: 0.35rem; }
.sm-cat { display: block; margin: -0.15rem 0 0 1.15rem; font-size: 0.82rem; color: var(--muted); line-height: 1.35; }

@media (max-width: 1100px) { .sm-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sm-groups { grid-template-columns: minmax(0, 1fr); } }
