/* ==========================================================================
   Legal Layout Bundle
   Auto-generated by bin/bundle-css — do not edit manually.
   ========================================================================== */

/* --- Source: base/reset.css --- */

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;

  overscroll-behavior: none;
}

/* Remove default margin in favour of better control in authored CSS */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin-block-end: 0;
  margin-block-start: 0;
}

ul {
  margin-block-start: 0;
  margin-block-end: 0;
  padding-inline-start: 0;
  list-style: none;
}

/* Set core body defaults */
body {
  padding: 0;
  margin: 0;
  min-height: 100vh;
  line-height: 1.5;

  overscroll-behavior: none;
}

/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
button,
input,
label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}


/* --- Source: base/tokens.css --- */

/* ==========================================================================
   Design Tokens — Rabata.io
   Single source of truth for colors, typography, spacing, and radii.
   Extracted from Figma UI Kit: https://figma.com/design/dN3AyfRTutZnijMD40HBcf
   ========================================================================== */

:root {
  /* --- Colors (primary palette) --- */
  --color-white: #ffffff;
  --color-text: #ccced0;
  --color-text-secondary: #676d72;
  --color-bg: #111a22;
  --color-bg-light: #242c33;
  --color-stroke: #1c363f;
  --color-stroke-light: rgba(255, 255, 255, 0.3);
  --color-dark: #020c14;
  --color-active: #28cdd9;
  --color-red: #ff5858;
  --color-success: #5de966;
  --color-warning: #eab41d;

  /* --- Colors (derived / alpha variants) --- */
  --color-active-10: rgba(40, 205, 217, 0.1);
  --color-active-20: rgba(40, 205, 217, 0.2);
  --color-active-30: rgba(40, 205, 217, 0.3);
  --color-active-40: rgba(40, 205, 217, 0.4);
  --color-active-70: rgba(40, 205, 217, 0.7);
  --color-active-80: rgba(40, 205, 217, 0.8);
  --color-inactive-bg: rgba(103, 109, 114, 0.12);
  --color-success-bg: rgba(93, 233, 102, 0.1);
  --color-warning-bg: rgba(234, 180, 29, 0.1);
  --color-red-bg: rgba(255, 88, 88, 0.1);
  --color-red-bg-hover: rgba(255, 88, 88, 0.25);
  --color-success-border: rgba(93, 233, 102, 0.3);
  --color-red-border: rgba(255, 88, 88, 0.3);
  --color-overlay: rgba(0, 0, 0, 0.7);
  --color-backdrop: rgba(0, 0, 0, 0.5);
  --color-scrim: rgba(0, 0, 0, 0.3);
  --color-row-hover: rgba(255, 255, 255, 0.06);
  --color-row-alt: rgba(255, 255, 255, 0.02);

  /* --- Chart colors --- */
  --color-chart-s3-storage: #28cdd9;
  --color-chart-s3-traffic: #2dd4bf;
  --color-chart-video: #eab41d;

  /* --- Fonts --- */
  --font-heading: "Tektur", sans-serif;
  --font-body: "Inter", sans-serif;

  /* --- Typography scale --- */
  --text-h1: 36px;
  --text-h2: 22px;
  --text-h3: 18px;
  --text-lg: 14px;
  --text-md: 12px;
  --text-sm: 10px;
  --line-height-xl: 28px;
  --line-height-lg: 24px;
  --line-height-md: 20px;
  --line-height-sm: 16px;

  /* --- Spacing (4px base) --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-15: 60px;
  --space-18: 72px;
  --space-20: 80px;
  --space-25: 100px;

  /* --- Border radius --- */
  --radius-xs: 2px;
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  /* --- Shadows --- */
  --shadow: 0 4px 24px var(--color-scrim);
  --shadow-glow: 0 0 8px var(--color-active-40);

  /* --- Gradients --- */
  --gradient-highlight: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );

  /* --- Z-index scale --- */
  --z-base: 1;
  --z-dropdown: 100;
  --z-header: 200;
  --z-sidebar-backdrop: 300;
  --z-sidebar: 310;
  --z-sidebar-mobile: 400;
  --z-modal: 1000;
  --z-toast: 1100;

  /* --- Transitions --- */
  --transition: 150ms ease;
}

@media (min-width: 1024px) {
  :root {
    --text-h1: 40px;
    --text-h2: 28px;
    --text-h3: 18px;
    --text-lg: 16px;
    --text-md: 14px;
    --text-sm: 12px;
    --line-height-lg: 24px;
    --line-height-md: 20px;
    --line-height-sm: 16px;
  }
}


/* --- Source: base/global.css --- */

body {
  background: var(--color-dark, #020c14);
  color: var(--color-text, #ccced0);

  font-family: var(--font-body, "Inter", sans-serif);
  font-size: var(--text-lg, 16px);
  line-height: var(--line-height-lg, 28px);
}

body.menu-open {
  overflow: hidden;
}

a {
  color: var(--color-active, #28cdd9);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-white, #ffffff);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: normal;
}

h1 {
  font-size: var(--text-h1);
}
h2 {
  font-size: var(--text-h2);
}
h3 {
  font-size: var(--text-h3);
}
h4 {
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 28px;
}
h5,
h6 {
  font-size: var(--text-md);
  font-weight: 400;
  line-height: 20px;
}

p {
  font-size: var(--text-lg);
  line-height: var(--line-height-lg);
}


/* --- Source: layout/legal/layout.css --- */

.legal {
  --cell: 20px;
  --line: 1px;
  --grid-color: var(--color-stroke);
  --legal-center: 600px;
  --legal-fade: 200px;

  display: flex;
  flex-direction: column;
  min-height: 100vh;

  background-color: var(--color-dark);
  background-image:
    linear-gradient(
      90deg,
      rgba(2, 12, 20, 0.7) 0,
      rgba(2, 12, 20, 0.8) calc(50% - var(--legal-center) / 2 - var(--legal-fade)),
      var(--color-dark) calc(50% - var(--legal-center) / 2),
      var(--color-dark) calc(50% + var(--legal-center) / 2),
      rgba(2, 12, 20, 0.8) calc(50% + var(--legal-center) / 2 + var(--legal-fade)),
      rgba(2, 12, 20, 0.7) 100%
    ),
    linear-gradient(
      to right,
      var(--grid-color) var(--line),
      transparent var(--line)
    ),
    linear-gradient(
      to bottom,
      var(--grid-color) var(--line),
      transparent var(--line)
    );
  background-size:
    auto,
    var(--cell) var(--cell),
    var(--cell) var(--cell);
  background-position:
    0 0,
    -1px -1px,
    -1px -1px;
}

.legal__container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.legal__content {
  width: 100%;
  max-width: var(--legal-center);
  padding: var(--space-8) var(--space-3) var(--space-20);
}


/* --- Source: layout/legal/header.css --- */

.legal-header {
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-stroke);
}

.legal-header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
}

.legal-header__logo {
  flex-shrink: 0;

  .logo__img {
    width: 126px;
    height: 28px;
  }
}

.legal-header__burger {
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .legal-header {
    display: none;
  }
}


/* --- Source: layout/legal/mobile-nav.css --- */

.legal-mobile-nav {
  position: fixed;
  top: 61px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-dropdown);

  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-4);

  background: rgba(6, 8, 13, 0.95);
  backdrop-filter: blur(16px);

  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);

  .auth-menu {
    display: flex;
    flex-direction: column;
    flex-flow: column-reverse;
    gap: var(--space-4);
  }
}

.legal-mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .legal-mobile-nav {
    display: none;
  }
}


/* --- Source: components/legal/document.css --- */

.document {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  width: 100%;
}

.document__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  width: fit-content;

  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-md);
  line-height: 12px;
  color: var(--color-active);
  text-decoration: none;
}

.document__back-icon {
  display: block;
  width: 16px;
  height: 16px;
}

.document__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  width: 100%;
}

.document__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.document__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-h2);
  line-height: normal;
  color: var(--color-white);
}

.document__meta {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: var(--line-height-lg);
  color: var(--color-text);
}

.document__divider {
  margin: 0;
  border: 0;
  width: 100%;
  height: 1px;
  background: var(--color-stroke);
}

.document__section {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.document__section-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 22px;
  line-height: normal;
  color: var(--color-white);
}

.document__subsection {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.document__subsection-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-h3);
  line-height: var(--line-height-lg);
  color: var(--color-white);
}

.document__prose {
  p {
    margin: 0 0 var(--space-3);
    font-family: var(--font-body);
    font-size: var(--text-lg);
    line-height: var(--line-height-lg);
    color: var(--color-text);
  }

  p:last-child {
    margin-bottom: 0;
  }

  ul {
    margin: 0 0 var(--space-3);
    padding-left: var(--space-6);
    list-style: disc;
  }

  li {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    line-height: var(--line-height-lg);
    color: var(--color-text);
  }

  a {
    color: var(--color-active);
    text-decoration: underline;
  }

  strong {
    font-weight: 600;
    color: var(--color-text);
  }
}


/* --- Source: components/legal/scroll-top.css --- */

.scroll-top {
  position: fixed;
  right: var(--space-6);
  bottom: var(--space-6);
  z-index: var(--z-base);

  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--color-stroke);
  border-radius: 40px;
  background: var(--color-dark);
  color: var(--color-active);
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  transition: opacity var(--transition), visibility var(--transition);
}

.scroll-top--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.scroll-top:focus-visible {
  outline: 2px solid var(--color-active);
  outline-offset: 2px;
}

.scroll-top__icon {
  display: block;
  transform: scaleY(-1);
}


/* --- Source: components/button.css --- */

/* ==========================================================================
   Button — BEM block
   Sizes: default (32px), --lg (38px), --sm (24px)
   Variants: primary (default), --secondary
   States: default, :hover, --inactive
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);

  height: 38px;
  padding: 0 var(--space-2);

  border: 1px solid var(--color-active-80);
  border-radius: var(--radius-md);
  background: var(--color-active-10);
  color: var(--color-active);

  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-lg);
  line-height: 12px;
  text-decoration: none;
  white-space: nowrap;

  cursor: pointer;

  overflow: hidden;

  transition:
    background var(--transition),
    border-color var(--transition);
}

.btn:hover {
  background: var(--color-active-30);
  border-color: var(--color-active);
}

.btn--inactive,
.btn:disabled {
  background: var(--color-inactive-bg);
  border-color: var(--color-text-secondary);
  color: var(--color-text-secondary);
  pointer-events: none;
}

/* --- Size: Large (38px) --- */

.btn--lg {
  height: 38px;
  padding: 0 var(--space-2);
  font-size: var(--text-lg);
  width: 220px;
}

/* --- Size: Small (24px) --- */

.btn--sm {
  height: 24px;
  padding: 0 6px 0 var(--space-1);
  font-size: var(--text-sm);
  gap: 2px;
}

.btn--sm .btn__icon {
  width: 16px;
  height: 16px;
}

/* --- Variant: Secondary --- */

.btn--secondary {
  background: transparent;
  border-color: var(--color-stroke);
  color: var(--color-white);
}

.btn--secondary:hover {
  background: var(--color-bg);
  border-color: var(--color-stroke);
  color: var(--color-white);
}

.btn--secondary.btn--inactive,
.btn--secondary:disabled {
  background: transparent;
  border-color: var(--color-text-secondary);
  color: var(--color-text-secondary);
}

/* --- Variant: Danger --- */

.btn--danger {
  background: var(--color-red-bg);
  border-color: var(--color-red);
  color: var(--color-red);
}

.btn--danger:hover {
  background: var(--color-red-bg-hover);
}

/* --- Positioning: Copy (absolute inside input field) --- */

.btn--copy {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  padding: var(--space-1) var(--space-3);
}

/* --- Full-width --- */

.btn--full {
  width: 100%;
  justify-content: center;
}

@media (min-width: 1024px) {
  .btn {
    height: 32px;
    padding: 0 var(--space-3);
    font-size: var(--text-md);
    border-radius: var(--radius-sm);
  }
}


/* --- Source: components/burger.css --- */

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid var(--color-stroke, #1c363f);
}

.burger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text, #ccced0);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger.is-active .burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-active .burger__line:nth-child(2) {
  opacity: 0;
}

.burger.is-active .burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* --- Source: components/logo.css --- */

.logo {
  display: block;
}

.logo__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* --- Source: components/auth-menu.css --- */

.auth-menu {
  display: flex;
  gap: var(--space-3);
}

