/* ==========================================================================
   FLARESHOOT — terms.css
   Legal / Terms of Service page — prose layout on the Liquid Intelligence base
   ========================================================================== */

.tos-page { padding-top: 82px; }

/* ============ LANGUAGE TOGGLE (top-right) ============ */

/* desktop: pinned where the header's right-hand slot is (vertically centered
   in the 82px header bar); mobile: back in the page flow — see RESPONSIVE */
.lang-toggle {
  position: fixed;
  top: 21px;
  right: clamp(20px, 4vw, 48px);
  z-index: 101;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(18, 10, 31, 0.72);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.lang-opt {
  min-width: 40px;
  padding: 7px 13px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.lang-opt:hover { color: var(--text); }

.lang-opt.is-active {
  color: #fff;
  background: linear-gradient(100deg, var(--violet) 0%, var(--violet-2) 55%, var(--orange) 135%);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.lang-opt:focus-visible {
  outline: 2px solid var(--violet-soft);
  outline-offset: 2px;
}

/* ============ HERO ============ */

.tos-hero {
  max-width: 860px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-3) var(--space-3);
  text-align: center;
}

.tos-hero-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: var(--space-2) 0 var(--space-3);
}

.tos-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin-bottom: var(--space-3);
}

.tos-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(18, 10, 31, 0.6);
  border: 1px solid var(--glass-border);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.tos-meta-pill b { color: var(--text); font-weight: 500; }

/* language-specific hero strings (toggled by terms.js) */
[data-l][hidden] { display: none !important; }

/* ============ NOTICE CALLOUT ============ */

.tos-notice {
  max-width: 860px;
  margin: 0 auto var(--space-4);
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-left: 3px solid var(--orange);
  background: rgba(249, 115, 22, 0.06);
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.65;
}

.tos-notice strong { color: var(--orange-2); }

/* ============ LAYOUT — TOC + DOCUMENT ============ */

.tos-layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-3) var(--space-6);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-5);
  align-items: start;
}

/* --- table of contents (sticky, desktop) --- */
.tos-toc {
  position: sticky;
  top: 104px;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(18, 10, 31, 0.72);
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-top);
}

.tos-toc-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.tos-toc ol { list-style: none; counter-reset: toc; display: grid; gap: 2px; }

.tos-toc a {
  display: block;
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.4;
  transition: color 0.2s ease, background 0.2s ease;
}

.tos-toc a:hover { color: var(--text); background: rgba(196, 181, 253, 0.08); }
.tos-toc a.is-active { color: var(--text); background: rgba(139, 92, 246, 0.14); }

.tos-toc a .toc-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--violet-soft);
  margin-right: 6px;
}

/* ============ DOCUMENT ============ */

.tos-doc[hidden] { display: none; }

.tos-section { scroll-margin-top: 104px; margin-bottom: var(--space-5); }

.tos-section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--glass-border);
}

.tos-section-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--orange);
  flex: none;
}

.tos-section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(21px, 2.6vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.tos-doc p {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: var(--space-2);
}

.tos-doc p:last-child { margin-bottom: 0; }

.tos-clause { font-family: var(--font-mono); font-size: 13px; color: var(--violet-soft); margin-right: 4px; }

/* sub-heading inside a section (e.g. a provider / service name) */
.tos-subhead {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text);
  margin: var(--space-3) 0 var(--space-2);
}

.tos-subhead .tos-subhead-num { color: var(--violet-soft); font-family: var(--font-mono); font-size: 14px; margin-right: 8px; }

.tos-doc strong { color: var(--text); font-weight: 600; }
.tos-doc em { color: var(--text); font-style: italic; opacity: 0.92; }

.tos-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 0 0 var(--space-2);
  padding-left: 2px;
}

.tos-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.7;
}

.tos-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--violet-2), var(--orange));
}

.tos-list li b { color: var(--text); font-weight: 600; }

/* --- pull-quote style for the mandatory counter-evidence clause etc. --- */
.tos-quote {
  margin: var(--space-2) 0;
  padding: 14px 20px;
  border-left: 3px solid var(--violet);
  border-radius: 0 14px 14px 0;
  background: rgba(139, 92, 246, 0.07);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}

.tos-doc a { color: var(--violet-soft); text-decoration: none; border-bottom: 1px solid rgba(196, 181, 253, 0.35); }
.tos-doc a:hover { color: var(--orange-2); border-bottom-color: var(--orange); }

/* --- closing line --- */
.tos-foot-note {
  max-width: 860px;
  margin: var(--space-4) auto 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--glass-border);
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.7;
  text-align: center;
}

/* ============ LEGAL NOTICE (Impressum) ============ */

.legal-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-3) var(--space-6);
}

.legal-card {
  padding: var(--space-4);
  border-radius: var(--radius);
  background: rgba(18, 10, 31, 0.72);
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-top);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 60px rgba(5, 2, 12, 0.55);
}

.legal-block { padding: var(--space-3) 0; border-bottom: 1px solid var(--glass-border); }
.legal-block:first-child { padding-top: 0; }
.legal-block:last-child { border-bottom: none; padding-bottom: 0; }

.legal-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.legal-value {
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

.legal-value .lead {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
}

.legal-value a { color: var(--violet-soft); text-decoration: none; border-bottom: 1px solid rgba(196, 181, 253, 0.35); }
.legal-value a:hover { color: var(--orange-2); border-bottom-color: var(--orange); }

.legal-mono { font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.02em; color: var(--violet-soft); }

@media (max-width: 640px) {
  .legal-card { padding: var(--space-3); }
}

/* --- German placeholder --- */
.tos-de-holder {
  max-width: 720px;
  margin: var(--space-4) auto var(--space-6);
  padding: var(--space-4);
  border-radius: var(--radius);
  background: rgba(18, 10, 31, 0.72);
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-top);
  text-align: center;
}

.tos-de-holder h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: var(--space-2);
}

.tos-de-holder p { color: var(--text-dim); font-size: 15.5px; line-height: 1.7; }

/* ============ RESPONSIVE ============ */

@media (max-width: 900px) {
  .tos-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .tos-toc { display: none; }
}

@media (max-width: 640px) {
  /* toggle sits right-aligned under the nav bar and scrolls with the page */
  .lang-toggle {
    position: relative;
    top: auto;
    right: auto;
    display: flex;
    width: max-content;
    margin: -6px 12px 0 auto;
  }
  .tos-hero { padding-top: var(--space-4); }
  .tos-layout { padding-left: var(--space-2); padding-right: var(--space-2); }
  .tos-doc p, .tos-list li { font-size: 15px; }
}

/* ============ CONTACT FORM (legal notice) ============ */
.contact-card { margin-top: var(--space-3); scroll-margin-top: 110px; }
.contact-form { display: grid; gap: 14px; margin-top: 10px; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-field { display: grid; gap: 6px; }
.contact-field span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(10, 6, 18, 0.55);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-field input:focus,
.contact-field textarea:focus { outline: none; border-color: var(--violet-soft); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2); }
.contact-field .is-invalid { border-color: #F87171; }
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-privacy { font-size: 12.5px; color: var(--text-dim); opacity: 0.85; }
.contact-privacy a { color: var(--violet-soft); }
.contact-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.contact-status { font-size: 14px; color: var(--text-dim); }
.contact-status.is-ok { color: #6EE7B7; }
.contact-status.is-err { color: #FCA5A5; }
@media (max-width: 640px) { .contact-row { grid-template-columns: 1fr; } }

/* phones: long URLs (privacy policy) may break anywhere instead of
   pushing the page wider than the screen */
.tos-body { min-width: 0; overflow-wrap: anywhere; }
