/* ===============================================
   RESET
   =============================================== */

/* Padding and borders should not change an element's declared size. */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Browser margin/padding defaults vary wildly across elements and vendors.
   Start from zero - handle spacing intentionally via the design system. */
* {
  margin: 0;
  padding: 0;
}

/* Prevents flex/grid children from overflowing their container.
   The default min-width: auto on flex and grid children causes overflow bugs
   that are notoriously confusing to debug. */
* {
  min-width: 0;
}

/* Hidden means hidden: !important is warranted here. */
[hidden] {
  display: none !important;
}

/* Allows CSS transitions to/from intrinsic keyword sizes (auto, min-content, etc.).
   Only meaningful for users who haven't requested reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

/* Prevent adjustments of font size after orientation changes in iOS. */
html {
  -webkit-text-size-adjust: 100%; /* Safari, iOS Safari */
  text-size-adjust: 100%;         /* Chrome, Edge, Firefox Android */
}

body {
  font-family: 'JetBrains Mono', monospace;
}

/* Scroll events captured by the scrolling area you're pointing at, by default. */
html {
  overscroll-behavior: contain;
}

/* Antialiased rendering looks better on high-DPI (retina) screens.
   On lower-DPI displays, subpixel antialiasing (the default) can be
   sharper, so this is slightly lossy on older monitors.
   Enable kerning and ligatures at small font-sizes by default. */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: always;
  text-rendering: optimizeLegibility;
}

/* A unitless line-height avoids inheritance math issues.
   The smaller default line-height for h-elements avoids excessive
   line-height when your design system (likely) applies larger fonts.
   WCAG recommends at least 1.5 for body copy. */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.1;
}

/* Prevents long URLs or unbreakable strings from blowing out their container. */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* Headings carry semantic meaning, not visual weight.
   h1–h6 sizing and boldness should come from your design system. */
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

/* Inline embedded content has a gap at the bottom caused by baseline alignment.
   Block display removes it; max-width prevents overflow.
   height: auto preserves aspect ratio when max-width constrains the width. */
img, picture, video, canvas, svg, embed, iframe, object, audio {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Inherit color by default so links don't always appear in browser-default blue.
   Text-decoration is intentionally left as underlined for accessibility. */
a {
  color: inherit;
}

/* Removes bullets/numbers.
   list markers should be an explicit choice, not a default. */
ul, ol {
  list-style: none;
}

/* ===============================================
   FONTS
   =============================================== */

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../Source/Font/JetBrainsMono-2.304/fonts/webfonts/JetBrainsMono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../Source/Font/JetBrainsMono-2.304/fonts/webfonts/JetBrainsMono-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../Source/Font/JetBrainsMono-2.304/fonts/webfonts/JetBrainsMono-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../Source/Font/JetBrainsMono-2.304/fonts/webfonts/JetBrainsMono-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ===============================================
   HEADER / FOOTER BREAKPOINT SWITCH
   =============================================== */

.header-d-wrap,
.header-p-wrap,
.footer-d-wrap,
.footer-p-wrap {
  width: 100%;
  flex-shrink: 0;
}

.header-p-wrap,
.footer-p-wrap {
  display: none;
}

/* The reset's `img { max-width: 100% }` fights the header logo's own
   fill-and-crop sizing (width/height: 148% inside an overflow:hidden circle).
   Exempt it so the component renders exactly as it does standalone. */
.header-d-logo img,
.header-p-logo img,
.headerc-d-logo img,
.headerc-p-logo img {
  max-width: none;
  height: 148%;
}

/* ===============================================
   LAYOUT
   =============================================== */

html, body {
  height: 100%;
}

body {
  background: #090909;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100vh;
  height: 100svh;
}

.disclaimer-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 32px;
  padding: 36px 150px;
  box-sizing: border-box;
  overflow: hidden;
}

.disclaimer-title-p {
  display: none;
}

.disclaimer-title-d,
.disclaimer-title-p {
  margin: 0;
  width: 100%;
  flex-shrink: 0;
  font-weight: 700;
  color: #3d0018;
  text-shadow: 0px 1px 1px rgba(0, 255, 146, 0.5);
  white-space: nowrap;
}

.disclaimer-title-d {
  font-size: 40px;
}

.disclaimer-title-p {
  font-size: 30px;
}

.disclaimer-scroll {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.disclaimer-scroll-inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  height: 100%;
}

.disclaimer-content-wrap {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: scroll;

  /* Hide the native scrollbar entirely - a custom one is rendered instead. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.disclaimer-content-wrap::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.disclaimer-content {
  width: 100%;
  color: #cdcdcd;
  text-align: justify;
  font-size: 16px;
}

.disclaimer-scrollbar-track {
  flex-shrink: 0;
  align-self: stretch;
  width: 4px;
  padding: 4px 1px;
  box-sizing: border-box;
  background: #000000;
  position: relative;
}

.disclaimer-scrollbar-thumb {
  position: absolute;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: #00ff92;
  filter: blur(0.5px);
  cursor: pointer;
}

.disclaimer-heading {
  margin: 0 0 3px;
  font-weight: 700;
  font-style: italic;
  color: #00ff92;
}

.disclaimer-text {
  margin: 0 0 3px;
  font-weight: 200;
}

.disclaimer-blank {
  margin: 0 0 3px;
}

.disclaimer-blank::after {
  content: '\00a0';
}

/* ===============================================
   RESPONSIVE - PHONE (max-width: 768px)
   =============================================== */
@media (max-width: 768px) {

  .header-d-wrap,
  .footer-d-wrap {
    display: none;
  }

  .header-p-wrap,
  .footer-p-wrap {
    display: block;
  }

  .disclaimer-body {
    gap: 26px;
    padding: 36px 40px;
  }

  .disclaimer-title-d {
    display: none;
  }

  .disclaimer-title-p {
    display: block;
  }

  .disclaimer-content {
    font-size: 14px;
  }
}
