/* Long-form content (privacy policy) + the in-page popup that shows it on the homepage.
 * Everything is scoped under .yt-page / .yt-modal, so it is safe to load on index.html.
 * Colours and fonts come from theme.css. */

/* ---------------- content ---------------- */
.yt-page { max-width: 1000px; margin: 0 auto; padding: clamp(40px, 8vh, 100px) clamp(28px, 6vw, 64px) clamp(70px, 12vh, 140px); color: rgb(var(--yt-white-rgb) / .92); font-family: var(--yt-font-sans); }

/* big title = homepage section title (.yt-about-h2) */
.yt-page .yt-page-h1 {
  margin: 0 0 clamp(14px, 2vh, 22px);
  font-family: var(--yt-font-serif);
  font-weight: 500;
  color: var(--yt-cream);
  font-size: clamp(44px, 7.5vw, 118px);
  line-height: 1;
  letter-spacing: -0.01em;
}
/* small caps label = homepage contact label (.yt-contact-label) */
.yt-page .yt-label {
  font-family: var(--yt-font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--yt-cream);
}
.yt-page .yt-page-meta { margin: 0 0 clamp(44px, 7vh, 84px); opacity: .75; }

.yt-page h2 {
  margin: clamp(48px, 7vh, 72px) 0 18px;
  font-family: var(--yt-font-serif);
  font-weight: 500;
  color: var(--yt-cream);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.005em;
}
/* body copy = homepage paragraph (.yt-about-p) */
.yt-page p,
.yt-page li {
  font-family: var(--yt-font-serif);
  font-weight: 500;
  font-size: clamp(15px, 1.55vw, 20px);
  line-height: 1.55;
  color: rgb(var(--yt-white-rgb) / .92);
}
.yt-page p { margin: 0 0 16px; }
.yt-page ul { margin: 0 0 16px; padding-left: 1.2em; }
.yt-page li { margin-bottom: 8px; }
.yt-page li::marker { color: var(--yt-cyan); }
.yt-page strong { color: var(--yt-cream); font-weight: 500; }
.yt-page a { color: var(--yt-cyan); text-decoration: underline; text-underline-offset: 3px; }
.yt-page [hidden] { display: none !important; }

.yt-page .yt-card {
  border: 1px solid rgb(var(--yt-cream-rgb) / .25);
  border-radius: clamp(18px, 2vw, 24px);
  background: rgb(var(--yt-cream-rgb) / .04);
  padding: clamp(18px, 2.4vw, 28px) clamp(20px, 3vw, 32px);
}
.yt-page .yt-card p { margin: 0 0 4px; }

/* table */
.yt-page .yt-table-wrap { overflow-x: auto; margin: 12px 0 20px; border: 1px solid rgb(var(--yt-cream-rgb) / .2); border-radius: 18px; }
.yt-page .yt-table { width: 100%; min-width: 640px; border-collapse: collapse; font-family: var(--yt-font-sans); font-size: 14px; line-height: 1.5; color: rgb(var(--yt-white-rgb) / .85); }
.yt-page .yt-table th,
.yt-page .yt-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid rgb(var(--yt-cream-rgb) / .15); }
.yt-page .yt-table th { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--yt-cream); background: rgb(var(--yt-cream-rgb) / .05); }
.yt-page .yt-table tr:last-child td { border-bottom: none; }
.yt-page .yt-table code { font-size: 13px; color: var(--yt-cream); word-break: break-word; }
.yt-page .yt-tag { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--yt-cyan); white-space: nowrap; }

/* pill button = homepage "Contacts" button (.yt-git-btn) */
.yt-page .yt-git-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px 14px 28px;
  border-radius: var(--yt-radius-pill);
  border: 1px solid rgb(var(--yt-cream-rgb) / .5);
  background: rgb(var(--yt-cream-rgb) / .06);
  color: var(--yt-cream);
  font: 500 14px/1 var(--yt-font-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.yt-page .yt-git-btn:hover { background: var(--yt-cream); color: var(--yt-plum); }
.yt-page .yt-git-btn-ico { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--yt-cyan); color: var(--yt-bg); }

/* ---------------- popup (same motion + close button as the homepage content overlay) ---------------- */
.yt-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--yt-bg);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform .6s var(--yt-ease), visibility 0s linear .6s;
}
.yt-modal.is-open { transform: translateY(0); visibility: visible; transition: transform .6s var(--yt-ease); }
.yt-modal-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.yt-modal-scroll::-webkit-scrollbar { width: 0; }
.yt-modal .yt-page { padding-top: clamp(110px, 16vh, 170px); }
.yt-modal-scrim {
  position: absolute; top: 0; left: 0; right: 0; z-index: 1;
  height: clamp(90px, 12vh, 144px);
  background: linear-gradient(to bottom, rgb(var(--yt-bg-rgb) / .9) 0%, rgb(var(--yt-bg-rgb) / .55) 42%, rgb(var(--yt-bg-rgb) / 0) 100%);
  pointer-events: none;
}
.yt-modal-close {
  position: absolute;
  left: clamp(24px, 3vw, 40px);
  top: clamp(20px, 2.3vw, 30px);
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgb(var(--yt-cream-rgb) / .4);
  background: rgb(56 12 32 / .35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yt-cream);
  transition: box-shadow .22s ease;
}
.yt-modal-close:hover { box-shadow: inset 0 0 0 2px rgb(var(--yt-cream-rgb) / .85); }
.yt-modal-close:focus-visible { outline: 2px solid var(--yt-cyan); outline-offset: 3px; }
.yt-modal-loading { padding: 30vh 24px; text-align: center; color: rgb(var(--yt-cream-rgb) / .6); font: 500 13px var(--yt-font-sans); letter-spacing: .18em; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { .yt-modal, .yt-modal.is-open { transition: none; } }
