/* Документы розыгрышей: правила, правовые сведения, политика конфиденциальности
   (templates/events/*-reglement.tpl, *-mentions-legales.tpl, *-confidentialite.tpl).
   Перенесено 20.11.2026 из httpdocs/muse/*.html и httpdocs/celine/*.html: там были копии шапки и подвала,
   теперь страницы на base.tpl, а здесь — только собственные стили документа.
   Правила body из старых файлов → .doc-page; .prose и .intro ограничены .doc. Общие стили сайта (Bootstrap Reboot)
   меняли только dt (жирный) — вернул обычное начертание. Сверено со старыми страницами на 375 и 1440: высоты те же.
   При правке — поменять ?v= в шести шаблонах. */

html { scroll-behavior: smooth; }
.doc-page { background: #F6F6FC; font: 400 16px/1.75 "Arial", Helvetica, sans-serif;
            color: #242434; -webkit-font-smoothing: antialiased; }
.doc-page a { color: #5F27CD; text-decoration: none; }
.doc-page a:hover { color: #4B2C87; }

/* Held to ~75 characters. The card ran to 830px and then 630px of prose — 84
   characters a line, past comfortable for continuous legal text. */
.doc { max-width: 700px; margin: 0 auto; padding: clamp(18px, 3vw, 36px) clamp(16px, 3vw, 28px) 72px; }
.doc-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.doc h1 { margin: 18px 0 0; font-size: clamp(25px, 4.4vw, 34px); line-height: 1.18;
           letter-spacing: -.8px; color: #242434; }
.doc-date { font-size: 13px; color: #6F6C93; margin-top: 9px; }

.doc-toc { margin-top: 24px; background: #fff; border: 1px solid #EDEBF7; border-radius: 16px;
            padding: 18px clamp(16px, 2.4vw, 24px); }
.doc-toc__title { font-size: 11px; font-weight: 700; letter-spacing: .14em;
                   text-transform: uppercase; color: #6F6C93; margin-bottom: 4px; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 30px; }
.doc-toc li { break-inside: avoid; }
.doc-toc a { display: block; padding: 6px 0; font-size: 14px; line-height: 1.45; color: #5F5C86; }
.doc-toc a:hover { color: #5F27CD; }
.doc-toc .num { color: #5F27CD; font-weight: 700; }

.doc-card { background: #fff; border: 1px solid #EDEBF7; border-radius: 20px;
             box-shadow: 0 1px 2px rgba(23,12,42,.03), 0 10px 28px rgba(23,12,42,.05);
             padding: clamp(20px, 3.4vw, 36px); margin-top: 20px; }
.doc-card section.ruled { border-top: 1px solid #EDEBF7; margin-top: 28px; padding-top: 28px; }
.doc-card h2 { margin: 0 0 13px; font-size: clamp(17.5px, 2.2vw, 20px); line-height: 1.32;
                letter-spacing: -.3px; color: #242434; scroll-margin-top: 72px; }
.doc-card h2 .num { color: #5F27CD; }
.doc-card section { scroll-margin-top: 72px; }

.doc .prose { font-size: 15.5px; line-height: 1.72; color: #5F5C86; overflow-wrap: break-word; }  /* длинные адреса в тексте переносятся на телефоне */
.doc .prose p { margin: 0 0 13px; }
.doc .prose p:last-child, .doc .prose ul:last-child { margin-bottom: 0; }
.doc .prose strong { color: #242434; font-weight: 700; }
.doc .prose a { text-decoration: underline; text-underline-offset: 2px; }
.doc .prose ul { margin: 12px 0; padding: 0; list-style: none; }
.doc .prose li { position: relative; margin-bottom: 8px; padding-left: 19px; }
.doc .prose li::before { content: ""; position: absolute; left: 3px; top: 11px; width: 5px; height: 5px;
                    border-radius: 50%; background: #C9C4DE; }
.doc .prose h3 { margin: 24px 0 10px; font-size: 15.5px; font-weight: 700; color: #242434; }

/* Identity of the publisher and the host: a label column that stays legible when
   it wraps, so it does not become a table nobody can read on a phone. */
.doc .prose dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; }
.doc .prose dt { font-weight: 400; font-size: 13px; letter-spacing: .02em; color: #8E8BAD; padding-top: 2px; }
.doc .prose dd { margin: 0; color: #242434; }
@media (max-width: 460px) {
  .doc .prose dl { grid-template-columns: 1fr; gap: 0; }
  .doc .prose dt { padding-top: 11px; }
  .doc .prose dt:first-child { padding-top: 0; }
}

/* Left to fill in before the pages go live. */
/* Spread with a shadow rather than padding, so the highlight does not push the
   punctuation after it away from the word. */
.doc .prose mark { background: #FFF3C4; color: #6B5200; border-radius: 3px;
               box-shadow: 0 0 0 3px #FFF3C4; }

/* The three documents refer to one another; without this the only way from the
   règlement to the privacy policy is back through the landing page. */
.doc-siblings { margin-top: 20px; }
.doc-siblings__title { font-size: 11px; font-weight: 700; letter-spacing: .14em;
                        text-transform: uppercase; color: #6F6C93; margin-bottom: 9px; }
.doc-siblings ul { list-style: none; margin: 0; padding: 0; display: flex;
                    flex-wrap: wrap; gap: 8px; }
.doc-siblings li { font-size: 13.5px; line-height: 1.3; padding: 8px 14px; border-radius: 999px;
                    border: 1px solid #EDEBF7; background: #fff; color: #B4B0CC; }
.doc-siblings li:has(a) { padding: 0; }
.doc-siblings a { display: block; padding: 8px 14px; color: #5F5C86; }
.doc-siblings a:hover { color: #5F27CD; background: #F6F6FC; border-radius: 999px; }

.doc-foot { margin-top: 22px; display: flex; gap: 20px; flex-wrap: wrap; font-size: 13.5px; }
.doc .intro { background: #F6F6FC; border-left: 3px solid #5F27CD; border-radius: 0 12px 12px 0;
          padding: 15px 18px; margin-bottom: 26px; color: #242434; }
.doc .intro p { margin: 0; }

@media (max-width: 640px) {
  .doc-toc ol { columns: 1; }
  .doc-card { border-radius: 16px; }
}
