:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  --ink: #202738;
  --muted: #515e72;
  --edge: #35445c24;
  --blue: #245bac;
}

* { box-sizing: border-box; }
html { background: #151b26; }
body { min-height: 100vh; margin: 0; color: var(--ink); isolation: isolate; }
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background: linear-gradient(#11182730, #11182779), url("/assets/horny-and-sad-bed.jpg") 62% center / cover no-repeat;
}
a { color: #244d87; overflow-wrap: anywhere; text-underline-offset: .15em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #2375d3; outline-offset: 2px; }

.menu-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: env(safe-area-inset-top) max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  border-bottom: 1px solid #ffffff1c;
  background: #16181ec7;
  color: #f1f2f7;
  backdrop-filter: blur(24px) saturate(150%);
}
.menu-bar a { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; color: inherit; font-size: 12px; text-decoration: none; }
.menu-bar a:hover { text-decoration: underline; }
.brand { font-weight: 650; }
.window {
  width: min(820px, calc(100% - 28px));
  margin: clamp(18px, 5vw, 64px) auto 18px;
  overflow: hidden;
  border: 1px solid #ffffffa8;
  border-radius: 12px;
  background: #e9ecf2;
  box-shadow: 0 18px 48px #0007, 0 3px 10px #0004;
}
.titlebar {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  align-items: center;
  min-height: 37px;
  padding: 0 12px;
  border-bottom: 1px solid var(--edge);
  background: linear-gradient(#f8f9fc, #d9dfe9);
  color: #353f52;
  text-align: center;
  font-size: 12px;
  font-weight: 650;
}
.controls { display: flex; gap: 6px; }
.controls span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 1px #0002; }
.controls span:nth-child(2) { background: #febc2e; }
.controls span:nth-child(3) { background: #28c840; }
.body { padding: clamp(17px, 5vw, 42px); font-size: 15px; line-height: 1.65; }
.status { display: block; margin-bottom: 9px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .035em; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.025em; }
h1 { margin: 0 0 12px; font-size: clamp(29px, 5vw, 43px); letter-spacing: -.045em; }
.lede { margin: 0 0 20px; color: var(--muted); font-size: 16px; }
h2 { margin: 28px 0 8px; padding-top: 16px; border-top: 1px solid var(--edge); font-size: 19px; }
h3 { margin: 16px 0 7px; font-size: 15px; }
p, ul, ol { margin: 0 0 12px; }
ul, ol { padding-left: 22px; }
li + li { margin-top: 5px; }
.plain { list-style: none; padding-left: 0; }
.panel { margin: 14px 0; padding: 14px; border: 1px solid var(--edge); border-radius: 8px; background: #f7f8fb; }
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
.notice { background: #fff7e6; }
.fine { color: var(--muted); font-size: 13px; }
.actions, .legal-links { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 16px; }
.legal-links { margin-top: 25px; padding-top: 14px; border-top: 1px solid var(--edge); }
.button {
  display: inline-grid;
  min-height: 44px;
  place-items: center;
  padding: 7px 13px;
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: #f7f8fb;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.button:hover { background: #dce6f7; }
.button.primary { border-color: #1e4d92; background: var(--blue); color: #fff; }
.button.primary:hover { background: #1f4e93; }

.legal-footer { display: grid; justify-items: center; padding: 0 14px max(18px, env(safe-area-inset-bottom)); }
.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid #ffffff59;
  border-radius: 13px;
  background: linear-gradient(#b6bfd268, #68728766);
  backdrop-filter: blur(24px) saturate(155%);
}
.legal-footer :is(a, button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  background: #171e30e8;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
}
.legal-footer :is(a, button):hover, .legal-footer [aria-current="page"] { background: #273c60; }
