/* ==========================================================================
   HolaGirona — document pages (legal, support, child safety)
   Loaded after landing.css, which provides the tokens, nav, buttons and footer.
   Class names match the existing page markup so the content HTML is untouched.
   ========================================================================== */

.doc {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(56px, 8vw, 88px);
}

/* the pages keep their own .container wrapper; .doc already provides the frame */
.doc .container {
  max-width: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

/* page title block ------------------------------------------------------- */

.doc h1,
.doc .header h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -.6px;
  text-transform: none;
  margin: 0;
}

.doc .header {
  text-align: center;
  padding-bottom: 30px;
  margin-bottom: 38px;
  border-bottom: 1px solid var(--hairline);
}

.doc .header p {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  margin-top: 12px;
}

.doc .subtitle,
.doc .website {
  color: var(--blue-on-tint);
  font-weight: 700;
  font-size: 15px;
  margin-top: 10px;
  margin-bottom: 34px;
}

.doc .website { text-align: left; }

.doc .placeholder {
  background: rgba(78, 174, 232, .14);
  color: var(--blue-on-tint);
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 700;
}

/* running text ----------------------------------------------------------- */

.doc h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(21px, 2.6vw, 25px);
  line-height: 1.25;
  letter-spacing: -.3px;
  margin: 42px 0 14px;
  padding-top: 8px;
}

.doc h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  margin: 28px 0 10px;
  color: #3f3a34;
}

.doc p,
.doc li {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.7;
}

.doc p { margin-bottom: 14px; }

.doc ul,
.doc ol { margin: 0 0 18px 22px; }
.doc li { margin-bottom: 8px; }

.doc li::marker { color: var(--sky); }

.doc strong { color: var(--ink); font-weight: 700; }

.doc a { text-decoration: underline; text-underline-offset: 2px; }

/* blocks ----------------------------------------------------------------- */

.doc .section {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 28px 30px 14px;
  margin-bottom: 22px;
}
.doc .section h2:first-child { margin-top: 0; }

.doc .content {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: clamp(26px, 4vw, 40px);
}
.doc .content > h2:first-child { margin-top: 0; }

.doc .contact-info,
.doc .important,
.doc .warning {
  border-radius: 18px;
  padding: 22px 24px;
  margin: 22px 0;
}

.doc .contact-info {
  background: rgba(78, 174, 232, .1);
  border: 1px solid rgba(78, 174, 232, .22);
}
.doc .contact-info p { margin-bottom: 6px; }

.doc .important {
  background: rgba(242, 193, 78, .18);
  border: 1px solid rgba(242, 193, 78, .45);
}

.doc .warning {
  background: rgba(232, 99, 74, .1);
  border: 1px solid rgba(232, 99, 74, .3);
}

.doc .important p:last-child,
.doc .warning p:last-child,
.doc .contact-info p:last-child { margin-bottom: 0; }

/* support page ----------------------------------------------------------- */

.doc .logo { margin-bottom: 18px; }
.doc .logo img { height: 64px; margin: 0 auto; }

/* section heading icon (support page) */
.doc .doc-hero-icon { display: flex; justify-content: center; color: var(--sky); }

.doc .card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 30px 32px;
  margin-bottom: 22px;
  box-shadow: 0 2px 0 rgba(28, 27, 26, .02);
}
.doc .card h2:first-child { margin-top: 0; }

/* the heading icons sit inline with the h2 text */
.doc .emoji {
  display: inline-flex;
  vertical-align: -3px;
  margin-right: 10px;
  color: var(--sky);
}

.doc .faq-item {
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
  margin-top: 20px;
}
.doc .faq-item:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.doc .faq-item h3 { margin-top: 0; }

/* the old in-page footers are replaced by the site footer */
.doc > .footer,
.doc .container > .footer { display: none; }

/* nav on document pages -------------------------------------------------- */

.doc-nav .nav-inner { justify-content: space-between; }
.doc-nav .nav-back { font-weight: 700; font-size: 15px; color: #4b463f; white-space: nowrap; }
.doc-nav .nav-back:hover { color: var(--ink); }

/* on narrow screens the brand already links home, so drop the text link */
@media (max-width: 620px) {
  .doc-nav .nav-back { display: none; }
  .doc .section,
  .doc .content { padding-left: 22px; padding-right: 22px; }
}

/* inline icons inside body copy (the footer heart) */
.icon { display: block; flex-shrink: 0; }
.icon-inline { display: inline-block; vertical-align: -2px; flex-shrink: 0; }
.icon-heart { fill: currentColor; color: #E8634A; }
