:root {
  color-scheme: light;
  --black: #070707;
  --ink: #171717;
  --muted: #66635e;
  --line: #dedbd4;
  --paper: #f7f6f2;
  --white: #ffffff;
  --gold: #b99a55;
  --gold-soft: #e8dcc0;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
a { color: inherit; }
a:hover { color: #7b642f; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  padding: 10px 14px;
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(222, 219, 212, .88);
  background: rgba(247, 246, 242, .94);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--black);
  font-weight: 650;
  letter-spacing: -.015em;
  text-decoration: none;
}

.brand img {
  width: 37px;
  height: 37px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 27px;
  font-size: .9rem;
  font-weight: 650;
}
.nav-links a { text-decoration: none; }

h1, h2 {
  margin: 0;
  color: var(--black);
  font-family: "Bodoni 72", Didot, "Iowan Old Style", Georgia, serif;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.035em;
}

.legal-hero {
  max-width: 920px;
  padding: clamp(78px, 11vw, 140px) 0 58px;
}
.legal-hero h1 { font-size: clamp(3.4rem, 7.5vw, 7rem); }
.legal-meta {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: .94rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 770px);
  justify-content: space-between;
  gap: 76px;
  padding-bottom: 110px;
}

.legal-layout.single { grid-template-columns: 1fr; }
.contents {
  position: sticky;
  top: 108px;
  align-self: start;
  padding: 22px 0;
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--line);
}
.contents strong {
  display: block;
  margin-bottom: 13px;
  color: var(--black);
  font-size: .8rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.contents a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: .89rem;
  text-decoration: none;
}

.legal-copy section {
  padding: 42px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.legal-copy section:first-of-type { border-top-color: var(--black); }
.legal-copy h2 {
  margin-bottom: 22px;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
}
.legal-copy h3 {
  margin: 30px 0 12px;
  color: var(--black);
  font-size: .92rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.legal-copy p { margin: 0 0 17px; }
.legal-copy p:last-child { margin-bottom: 0; }
.legal-copy ul { margin: 13px 0 20px; padding-left: 23px; }
.legal-copy li { margin: 8px 0; }
.legal-copy a { color: #6b5423; font-weight: 650; }

.plain-note {
  margin: 0 0 46px;
  padding: 25px 28px;
  border-left: 3px solid var(--gold);
  background: var(--white);
  color: #3f392d;
}

.site-footer {
  padding: 44px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 34px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--black); font-weight: 650; text-decoration: none; }

/* Authenticated identity account */
.identity-body {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 70px 70px,
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 70px 70px,
    var(--black);
  color: var(--white);
}

.identity-header {
  width: min(calc(100% - 56px), 1320px);
  min-height: 92px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.identity-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--white);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-decoration: none;
}
.identity-brand:hover { color: var(--white); }
.identity-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.identity-brand span {
  padding-left: 13px;
  border-left: 1px solid rgba(255,255,255,.28);
}

.secure-state {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,.66);
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.secure-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(185,154,85,.12);
}

.account-shell {
  width: min(calc(100% - 56px), 1160px);
  min-height: calc(100vh - 92px);
  margin-inline: auto;
  padding: clamp(60px, 8vw, 112px) 0 36px;
}

.account-loading {
  min-height: 55vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  color: rgba(255,255,255,.58);
  font-size: .88rem;
  letter-spacing: .04em;
}
.loading-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.16);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.account-view {
  animation: account-in .55s cubic-bezier(.2,.75,.25,1) both;
}
@keyframes account-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.account-intro {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding-bottom: clamp(52px, 7vw, 82px);
}
.avatar {
  width: clamp(72px, 9vw, 104px);
  height: clamp(72px, 9vw, 104px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(185,154,85,.55);
  border-radius: 50%;
  background: #111;
  color: var(--gold-soft);
  font: 500 clamp(1.7rem, 3vw, 2.5rem)/1 "Bodoni 72", Didot, Georgia, serif;
}
.account-label {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.account-intro h1 {
  color: var(--white);
  font-size: clamp(2.7rem, 6vw, 5.4rem);
}
.account-email { margin: 9px 0 0; color: rgba(255,255,255,.58); }
.verification {
  align-self: end;
  margin-bottom: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(185,154,85,.34);
  color: var(--gold-soft);
  font-size: .75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.verification[data-verified="false"] { color: rgba(255,255,255,.58); border-color: rgba(255,255,255,.18); }

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  border-top: 1px solid rgba(255,255,255,.18);
  border-left: 1px solid rgba(255,255,255,.18);
}
.account-panel {
  min-width: 0;
  padding: clamp(28px, 4vw, 42px);
  border-right: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.025);
}
.account-panel-primary { background: rgba(255,255,255,.045); }
.memberships-panel { grid-column: 1 / -1; }

.panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
}
.panel-heading h2 {
  color: var(--white);
  font-family: "Avenir Next", Avenir, sans-serif;
  font-size: .88rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.panel-heading > span {
  color: var(--gold);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}
.detail-list div {
  padding: 20px 20px 20px 0;
  border-top: 1px solid rgba(255,255,255,.1);
}
.detail-list dt {
  margin-bottom: 7px;
  color: rgba(255,255,255,.43);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.detail-list dd { margin: 0; color: rgba(255,255,255,.88); }

.security-copy {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 30px;
}
.security-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(185,154,85,.5);
  border-radius: 50%;
  color: var(--gold);
}
.security-copy strong { display: block; margin: 2px 0 6px; font-size: .94rem; }
.security-copy p { margin: 0; color: rgba(255,255,255,.5); font-size: .88rem; line-height: 1.55; }
.text-link {
  color: var(--gold-soft);
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover { color: var(--white); }

.membership-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.1);
}
.membership-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  background: #0b0b0b;
}
.membership-mark {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(185,154,85,.36);
  color: var(--gold);
  font-family: "Bodoni 72", Didot, Georgia, serif;
}
.membership-row div { min-width: 0; }
.membership-row strong, .membership-row span { display: block; }
.membership-row strong {
  overflow: hidden;
  color: rgba(255,255,255,.9);
  font-size: .9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.membership-row div span {
  margin-top: 3px;
  color: rgba(255,255,255,.42);
  font-size: .75rem;
  letter-spacing: .04em;
  text-transform: capitalize;
}
.membership-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  background: #0b0b0b;
  color: rgba(255,255,255,.46);
  font-size: .88rem;
}

.account-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 0;
  color: rgba(255,255,255,.38);
  font-size: .78rem;
}
.account-footer nav { display: flex; gap: 20px; }
.account-footer a { text-decoration: none; }
.account-footer a:hover { color: var(--gold); }

.account-error {
  max-width: 620px;
  padding-top: 8vh;
}
.account-error img { width: 64px; height: 64px; object-fit: contain; }
.account-error h1 {
  margin-top: 38px;
  color: var(--white);
  font-size: clamp(2.8rem, 6vw, 5rem);
}
.account-error p { max-width: 520px; margin: 24px 0 34px; color: rgba(255,255,255,.58); font-size: 1.05rem; }
.account-error a {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  font-weight: 650;
  text-decoration: none;
}

@media (max-width: 820px) {
  .legal-layout, .account-grid { grid-template-columns: 1fr; }
  .contents { position: static; }
  .memberships-panel { grid-column: auto; }
  .membership-list { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .nav { min-height: 68px; }
  .nav-links { gap: 15px; font-size: .8rem; }
  .nav-links a:first-child { display: none; }
  .footer-grid, .account-footer { flex-direction: column; }
  .identity-header, .account-shell { width: min(calc(100% - 30px), 1160px); }
  .identity-header { min-height: 78px; }
  .identity-brand img { width: 37px; height: 37px; }
  .secure-state { font-size: .66rem; }
  .account-shell { min-height: calc(100vh - 78px); padding-top: 48px; }
  .account-intro { grid-template-columns: auto 1fr; gap: 17px; }
  .verification { grid-column: 1 / -1; justify-self: start; margin: 0; }
  .detail-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .account-view { animation: none; }
  .loading-mark { animation-duration: 1.8s; }
}

/* Yebalabs compact identity system */
body {
  background: var(--white);
  font-size: .95rem;
}

body :where(p, a, span, strong, li, dt, dd, nav) {
  font-size: clamp(.9rem, .95rem, 1.333rem) !important;
}

h1,
.legal-hero h1,
.account-intro h1,
.account-error h1 {
  font-size: 1.333rem;
  letter-spacing: -.015em;
  line-height: 1.25;
}

h2,
.legal-copy h2,
.panel-heading h2 {
  font-size: 1.12rem;
  letter-spacing: -.01em;
  line-height: 1.35;
  text-transform: none;
}

h3,
.legal-copy h3 {
  font-size: 1rem;
  letter-spacing: .02em;
}

.site-header {
  background: rgba(255, 255, 255, .96);
}

.nav {
  position: relative;
  justify-content: center;
}

.brand img {
  width: 46px;
  height: 46px;
}

.nav-links {
  position: absolute;
  right: 0;
}

.legal-hero {
  padding-top: 82px;
}

.identity-body {
  background: var(--white);
  color: var(--ink);
}

.identity-header {
  position: relative;
  justify-content: center;
  border-bottom-color: var(--line);
}

.identity-brand img {
  width: 54px;
  height: 54px;
}

.secure-state {
  position: absolute;
  right: 0;
  color: var(--muted);
}

.account-loading {
  color: var(--muted);
}

.loading-mark {
  border-color: var(--line);
  border-top-color: var(--gold);
}

.avatar {
  border-color: var(--gold);
  background: var(--black);
  color: var(--gold-soft);
  font-size: 1.1rem;
}

.account-intro h1,
.panel-heading h2,
.membership-row strong,
.security-copy strong {
  color: var(--black);
}

.account-email,
.security-copy p,
.membership-row div span,
.membership-empty,
.account-footer {
  color: var(--muted);
}

.verification {
  border-color: rgba(185, 154, 85, .6);
  color: #755c28;
}

.verification[data-verified="false"] {
  border-color: var(--line);
  color: var(--muted);
}

.account-grid {
  border-top-color: var(--line);
  border-left-color: var(--line);
}

.account-panel,
.account-panel-primary {
  border-right-color: var(--line);
  border-bottom-color: var(--line);
  background: var(--white);
}

.detail-list div {
  border-top-color: var(--line);
}

.detail-list dt {
  color: var(--muted);
}

.detail-list dd {
  color: var(--black);
}

.security-icon {
  color: #755c28;
}

.text-link {
  color: #755c28;
}

.text-link:hover,
.account-footer a:hover {
  color: var(--black);
}

.membership-list {
  background: var(--line);
}

.membership-row,
.membership-empty {
  background: var(--paper);
}

.membership-mark {
  background: var(--white);
  color: #755c28;
}

.account-error h1 {
  color: var(--black);
}

.account-error p {
  color: var(--muted);
}

.account-error a {
  color: var(--black);
}

@media (max-width: 600px) {
  .nav {
    justify-content: center;
  }
}

body,
h1,
h2,
h3,
button,
input,
.avatar,
.membership-mark,
.panel-heading h2 {
  font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
}

.error-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
}

.not-found {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 520px;
  padding-top: 72px;
  padding-bottom: 72px;
}

.not-found-rule {
  width: 44px;
  height: 2px;
  margin-bottom: 26px;
  background: var(--gold);
}

.not-found-code {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.not-found h1 {
  margin-bottom: 16px;
}

.not-found > p:last-of-type {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
}

.not-found-actions a {
  font-weight: 650;
  text-decoration: none;
}

.not-found-actions .primary-link {
  padding: 11px 16px;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
}

.not-found-actions .primary-link:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--black);
}

.error-footer {
  margin-top: auto;
}
