/* LAW legal and system pages. Self-contained because these pages do not load law-all.css. */

:root {
  --law-bg: #070405;
  --law-panel: rgba(27, 12, 18, .82);
  --law-panel-soft: rgba(255, 255, 255, .045);
  --law-line: rgba(255, 241, 245, .14);
  --law-line-strong: rgba(255, 241, 245, .24);
  --law-paper: #fff8f5;
  --law-muted: #baacb0;
  --law-red: #e31946;
  --law-red-dark: #78122d;
  --law-pill: 999px;
  --law-radius: 34px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-width: 320px;
  background: var(--law-bg);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(227, 25, 70, .055), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(110, 15, 42, .16), transparent 32%),
    var(--law-bg);
  color: var(--law-paper);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  position: relative;
  width: min(calc(100% - 40px), 1440px);
  margin: 0 auto;
}

.top-strip {
  display: none;
}

header {
  position: sticky;
  top: 0;
  z-index: 600;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: rgba(7, 4, 5, .72);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  backdrop-filter: blur(24px) saturate(135%);
}

.nav-wrap {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 7px 9px 7px 10px;
  border: 1px solid var(--law-line);
  border-radius: var(--law-pill);
  background: linear-gradient(135deg, rgba(255, 255, 255, .075), rgba(91, 12, 34, .13));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .075), 0 18px 44px rgba(0, 0, 0, .2);
}

.brand {
  min-width: 190px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  padding: 4px;
  object-fit: contain;
  border: 1px solid var(--law-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .055);
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-copy small {
  color: rgba(255, 244, 247, .55);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.brand-copy strong {
  color: #fff;
  font-size: 17px;
  line-height: 1;
}

header nav,
.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

header nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--law-pill);
  color: rgba(255, 244, 247, .68);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

header nav a:hover,
header nav a.active {
  border-color: rgba(227, 25, 70, .34);
  background: rgba(142, 14, 45, .25);
  color: #fff;
}

.icon-btn,
.menu-toggle {
  width: 46px;
  min-width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--law-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .045);
  color: #fff;
  font-size: 18px;
}

.cart-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(227, 25, 70, .42);
  border-radius: var(--law-pill);
  background: linear-gradient(135deg, #b5153d, #78122d);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.menu-toggle {
  display: none;
}

.mobile-menu {
  display: none;
}

.mobile-menu.open {
  display: grid;
}

.law-page {
  width: min(calc(100% - 48px), 1280px);
  margin: 0 auto;
  padding: clamp(42px, 6vw, 90px) 0 76px;
}

.law-page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(30px, 7vw, 120px);
  align-items: end;
  margin-bottom: 32px;
  padding: 0 0 clamp(34px, 5vw, 58px);
  overflow: hidden;
  border-bottom: 1px solid var(--law-line);
}

.law-page-hero::after {
  content: "LAW";
  position: absolute;
  right: 0;
  bottom: -18px;
  z-index: -1;
  color: transparent;
  font: 700 clamp(100px, 18vw, 250px)/.72 Arial, Helvetica, sans-serif;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .055);
  pointer-events: none;
}

.law-page-hero .pill,
.law-404-card .pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin: 0 0 20px;
  padding: 0 14px;
  border: 1px solid rgba(227, 25, 70, .54);
  border-radius: var(--law-pill);
  background: rgba(113, 14, 39, .2);
  color: #ffdce4;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.law-page-hero h1 {
  max-width: 12ch;
  margin: 0 0 16px;
  color: var(--law-paper);
  font: 400 clamp(50px, 6.2vw, 88px)/.9 Georgia, "Times New Roman", serif;
}

.law-page-hero p {
  max-width: 64ch;
  margin: 0;
  color: var(--law-muted);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.65;
}

.law-nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-bottom: 2px;
  flex-wrap: wrap;
}

.law-nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 17px;
  border: 1px solid var(--law-line);
  border-radius: var(--law-pill);
  background: rgba(255, 255, 255, .045);
  color: rgba(255, 248, 245, .82);
  font-size: 12px;
  font-weight: 700;
}

.law-nav-links a:hover {
  border-color: rgba(227, 25, 70, .52);
  background: rgba(135, 15, 44, .3);
  color: #fff;
}

.law-content {
  counter-reset: law-section;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.law-section {
  counter-increment: law-section;
  position: relative;
  min-height: 190px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 9px 14px;
  align-content: start;
  margin: 0;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--law-line);
  border-radius: var(--law-radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(73, 10, 28, .1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}

.law-section::before {
  content: counter(law-section, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(227, 25, 70, .45);
  border-radius: 50%;
  background: rgba(122, 14, 40, .22);
  color: #ff9eb2;
  font-size: 10px;
  font-weight: 800;
}

.law-section h2 {
  grid-column: 2;
  margin: 4px 0 0;
  color: var(--law-paper);
  font: 400 clamp(22px, 2vw, 28px)/1.08 Georgia, "Times New Roman", serif;
}

.law-section p {
  grid-column: 2;
  margin: 0;
  color: var(--law-muted);
  font-size: 14px;
  line-height: 1.72;
}

.law-section strong,
.law-section a {
  color: #ffb3c2;
}

.law-note {
  grid-column: 1 / -1;
  min-height: 58px;
  display: flex;
  align-items: center;
  margin: 4px 0 0;
  padding: 12px 22px;
  border: 1px solid rgba(227, 25, 70, .35);
  border-radius: var(--law-pill);
  background: linear-gradient(135deg, rgba(148, 15, 47, .24), rgba(255, 255, 255, .035));
  color: #f1dce1;
  font-size: 13px;
  line-height: 1.5;
}

.law-form .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.law-form label {
  display: grid;
  gap: 8px;
  color: var(--law-muted);
  font-size: 12px;
  font-weight: 700;
}

.law-form input,
.law-form select,
.law-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--law-line);
  border-radius: var(--law-pill);
  background: rgba(7, 4, 5, .56);
  color: var(--law-paper);
}

.law-form textarea {
  min-height: 140px;
  padding-top: 16px;
  border-radius: 26px;
  resize: vertical;
}

.law-form :is(input, select, textarea):focus {
  outline: 0;
  border-color: rgba(255, 82, 121, .68);
  box-shadow: 0 0 0 3px rgba(227, 25, 70, .13);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 20px 0 0;
}

.spec {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 15px;
  border: 1px solid var(--law-line);
  border-radius: var(--law-pill);
  background: rgba(255, 255, 255, .035);
}

.spec span {
  color: rgba(255, 244, 247, .54);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.spec strong {
  color: var(--law-paper);
  font-size: 14px;
  text-align: right;
}

.btn,
.btn-primary,
.ghost-btn,
.law-404-actions a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border: 1px solid var(--law-line);
  border-radius: var(--law-pill);
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.btn-primary,
.law-404-actions .btn-primary {
  border-color: rgba(227, 25, 70, .48);
  background: linear-gradient(135deg, #c11642, #75112c);
  box-shadow: 0 14px 30px rgba(135, 13, 43, .24);
}

.btn:hover,
.ghost-btn:hover,
.law-404-actions a:hover {
  border-color: rgba(255, 89, 126, .5);
  background: rgba(133, 14, 43, .3);
}

.law-status-card {
  grid-column: 1 / -1;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.law-status-card .symbol {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 101, 135, .42);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 25, 70, .26), rgba(255, 255, 255, .035));
  color: #ff9db2;
  font-size: 40px;
}

.law-status-card h2,
.law-status-card p {
  grid-column: auto;
  max-width: 58ch;
  text-align: center;
}

.law-404 {
  width: min(calc(100% - 40px), 900px);
  min-height: 64vh;
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: 70px 0;
}

.law-404-card {
  width: 100%;
  padding: clamp(34px, 6vw, 70px);
  border: 1px solid var(--law-line);
  border-radius: clamp(36px, 6vw, 72px);
  background: linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(92, 12, 35, .12));
  text-align: center;
}

.law-404-code {
  color: var(--law-red);
  font: 400 clamp(88px, 16vw, 160px)/.8 Georgia, "Times New Roman", serif;
}

.law-404-card h1 {
  margin: 24px 0 12px;
  font: 400 clamp(34px, 5vw, 52px)/.95 Georgia, "Times New Roman", serif;
}

.law-404-card p {
  max-width: 54ch;
  margin: 0 auto;
  color: var(--law-muted);
  line-height: 1.65;
}

.law-404-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.law-footer {
  width: min(calc(100% - 48px), 1280px);
  margin: 0 auto;
  padding: 0 0 36px;
}

.law-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 54px);
  padding: 40px 0;
  border-top: 1px solid var(--law-line);
  border-bottom: 1px solid var(--law-line);
}

.law-footer__brand img {
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  padding: 4px;
  object-fit: contain;
  border: 1px solid var(--law-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
}

.law-footer__brand strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.law-footer__brand p,
.law-footer__col p,
.law-footer__col a {
  margin: 0;
  color: var(--law-muted);
  font-size: 13px;
  line-height: 1.8;
}

.law-footer h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.law-footer__col a:hover {
  color: #ffafbf;
}

.law-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 0;
  color: rgba(255, 244, 247, .5);
  font-size: 11px;
  flex-wrap: wrap;
}

@media (min-width: 1600px) {
  .law-page,
  .law-footer {
    max-width: 1400px;
  }

  .law-section {
    min-height: 205px;
    padding: 30px;
  }
}

@media (max-width: 900px) {
  .container {
    width: min(calc(100% - 24px), 760px);
  }

  header {
    position: relative;
    padding: 8px 0 12px;
  }

  .nav-wrap {
    min-height: 58px;
    padding: 7px 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  header nav,
  .nav-right {
    display: none;
  }

  .mobile-menu {
    position: absolute;
    top: 72px;
    right: 12px;
    left: 12px;
    z-index: 20;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--law-line);
    border-radius: 28px;
    background: rgba(17, 8, 12, .96);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .45);
  }

  .mobile-menu a {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-radius: var(--law-pill);
    color: rgba(255, 248, 245, .78);
  }

  .law-page {
    width: min(calc(100% - 28px), 760px);
    padding: 38px 0 132px;
  }

  .law-page-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .law-page-hero h1 {
    max-width: 100%;
    font-size: clamp(46px, 10vw, 70px);
  }

  .law-nav-links {
    justify-content: flex-start;
  }

  .law-content {
    grid-template-columns: 1fr;
  }

  .law-note {
    border-radius: 28px;
  }

  .law-form .row {
    grid-template-columns: 1fr;
  }

  .law-footer {
    width: min(calc(100% - 28px), 760px);
    padding-bottom: 126px;
  }

  .law-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .law-page {
    width: calc(100% - 20px);
    padding-top: 30px;
  }

  .law-page-hero {
    margin-bottom: 18px;
    padding-bottom: 28px;
  }

  .law-page-hero .pill,
  .law-404-card .pill {
    margin-bottom: 16px;
  }

  .law-page-hero h1 {
    margin-bottom: 12px;
    font-size: clamp(40px, 12vw, 54px);
  }

  .law-page-hero p {
    font-size: 14px;
    line-height: 1.55;
  }

  .law-nav-links {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .law-nav-links::-webkit-scrollbar {
    display: none;
  }

  .law-nav-links a {
    flex: 0 0 auto;
  }

  .law-section {
    min-height: 0;
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 20px 18px;
    border-radius: 28px;
  }

  .law-section::before {
    width: 36px;
    height: 36px;
  }

  .law-section h2 {
    font-size: 22px;
  }

  .law-section p {
    font-size: 13px;
    line-height: 1.65;
  }

  .law-note {
    align-items: flex-start;
    padding: 16px 18px;
  }

  .law-footer {
    width: calc(100% - 20px);
  }

  .law-footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px 0;
  }

  .law-footer__bottom {
    flex-direction: column;
  }

  .law-404 {
    width: calc(100% - 20px);
    padding: 30px 0 130px;
  }

  .law-404-card {
    padding: 34px 20px;
    border-radius: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
