/* ==========================================================================
   STARTECOM | legal pages and 404 (loads after styles.css)
   ========================================================================== */
body.sub { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.sub > main { flex: 1 0 auto; }
.sub .site-header { position: sticky; background: #000; }
.back { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px 0 12px; border-radius: 13px; font-size: .95rem; font-weight: 500; color: #fff; transition: background-color .2s; }
.back:hover { background: rgba(255, 255, 255, .1); }
.back .ic { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.back:hover .ic { transform: translateX(-3px); }
.legal-hero { position: relative; padding: 76px 0 80px; background: #000; color: #fff; }
.legal-hero .label { color: #E4E5E9; }
.legal-sub { max-width: 40em; margin-top: 18px; font-size: 1.12rem; line-height: 1.55; color: var(--on-2); }
.legal-body { width: 100%; max-width: 820px; margin: 0 auto; padding: 76px var(--gut) 116px; }
.legal-body h2 { margin: 48px 0 14px; padding-top: 30px; border-top: 1px solid var(--line-3); font-size: 1.5rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body h3 { margin: 26px 0 8px; font-size: 1.1rem; font-weight: 600; }
.legal-body p { margin-bottom: 14px; line-height: 1.75; color: var(--ink-2); }
.legal-body ul { display: grid; gap: 9px; margin: 6px 0 20px; }
.legal-body li { position: relative; padding-left: 26px; line-height: 1.65; color: var(--ink-2); }
.legal-body li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--cy); box-shadow: 0 0 0 2px #000; }
.legal-body a:not(.btn) { font-weight: 600; color: var(--cy-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0, 108, 140, .4); }
.legal-body strong { color: #000; }
.legal-contact { margin-top: 10px; padding: 22px 24px; border-radius: var(--r-md); background: var(--g); box-shadow: inset 0 0 0 1px var(--line); line-height: 1.9; color: var(--ink-2); }
.legal-contact strong { display: block; margin-bottom: 2px; font-size: 1.08rem; color: #000; }
.legal-foot { padding: 30px 0; background: #000; color: var(--on-3); font-size: .88rem; line-height: 1.7; }
.legal-foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 28px; }
.legal-foot a { color: #E6E7EB; transition: color .2s; }
.legal-foot a:hover { color: var(--cy); }
.legal-mail { margin-left: 6px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .4); }
.legal-foot nav { display: flex; gap: 22px; }
/* 404: one dark screen. The code sits on a display that tries to switch on, then goes dark again. */
.nf-main { display: flex; }
.nf { flex: 1; display: flex; align-items: center; padding: 64px 0 96px; }
.nf-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 44px 72px; width: 100%; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.nf-code { line-height: 0; }
.nf-code .led { font-size: clamp(6rem, 15vw, 14rem); }
/* decorative: the code is already in the label above, so the display is drawn with generated content */
.nf-code .led::before { content: attr(data-t); position: absolute; left: 0; top: 0; font-family: var(--fmg); color: #131315; }
.nf-code .led::after { content: attr(data-t); position: relative; color: #2B2D33; animation: nf-flicker 7s linear 1.2s infinite; }
@keyframes nf-flicker {
  0%, 71%, 75%, 77%, 88%, 100% { color: #2B2D33; text-shadow: none; }
  72%, 74%, 78%, 87% { color: var(--cy); text-shadow: 0 0 .1em rgba(34, 217, 255, .6); }
}
@media (max-width: 900px) {
  .nf { align-items: flex-start; padding: 44px 0 72px; }
  .nf-in { grid-template-columns: minmax(0, 1fr); }
  .nf-code { order: -1; }
  .nf-code .led { font-size: min(39vw, 11rem); }
}
@media (max-width: 560px) {
  .back-t { display: none; }
  .back { padding: 0 12px; }
  .legal-hero { padding: 54px 0 58px; }
  .legal-body { padding-top: 54px; padding-bottom: 88px; }
  .legal-foot-in { flex-direction: column; align-items: flex-start; }
  .legal-mail { margin-left: 0; display: block; }
  .nf-actions .btn { flex: 1 1 auto; }
}
