:root {
  --stan-bg: #fcfaf7;
  --stan-primary: #7a7063;
  --stan-text: #342f2a;
  --stan-muted: rgba(52, 47, 42, .66);
  --stan-line: rgba(122, 112, 99, .18);
  --stan-card: #ffffff;
  --stan-card-soft: #fbf6f1;
  --stan-shadow: 0 10px 30px rgba(79, 65, 52, .10);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--stan-bg);
  color: var(--stan-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }

.page {
  min-height: 100svh;
  display: flex;
  justify-content: center;
  padding: 22px 14px 34px;
}
.linksite {
  width: min(100%, 430px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 16px;
  text-align: center;
}
.avatar-wrap {
  width: 112px;
  height: 112px;
  border-radius: 999px;
  padding: 4px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(79, 65, 52, .12);
}
.avatar {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center 34%;
}
.name {
  margin: 14px 0 0;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.bio {
  margin: 3px 0 0;
  color: var(--stan-primary);
  font-size: 15px;
  font-weight: 650;
}
.socials {
  display: flex;
  justify-content: center;
  gap: 11px;
  margin-top: 16px;
}
.social {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--stan-line);
  border-radius: 999px;
  background: #fff;
  color: var(--stan-primary);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(79, 65, 52, .06);
}
.social svg { width: 19px; height: 19px; fill: currentColor; }

.links {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}
.stan-link {
  position: relative;
  min-height: 86px;
  display: grid;
  grid-template-columns: 70px 1fr 22px;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--stan-line);
  border-radius: 18px;
  background: var(--stan-card);
  padding: 8px 12px 8px 8px;
  box-shadow: var(--stan-shadow);
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease;
}
.stan-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 38px rgba(79, 65, 52, .13);
}
.stan-link.featured {
  border-color: rgba(122, 112, 99, .42);
  background: #fffdfb;
}
.thumb {
  width: 70px;
  height: 70px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
  background: var(--stan-card-soft);
}
.icon-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--stan-primary);
}
.icon-thumb svg { width: 28px; height: 28px; fill: currentColor; }
.copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.title {
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.subtitle {
  color: var(--stan-muted);
  font-size: 12.5px;
  line-height: 1.25;
  font-weight: 600;
}
.arrow {
  color: rgba(52, 47, 42, .42);
  font-size: 25px;
  line-height: 1;
}

.legal-card {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 15px;
  color: rgba(52, 47, 42, .56);
  font-size: 12px;
  font-weight: 600;
}
.legal-card a { text-decoration: none; }
.legal-card a:hover { text-decoration: underline; }

.note {
  margin: 16px auto 0;
  max-width: 34ch;
  color: rgba(52, 47, 42, .44);
  text-align: center;
  font-size: 11.5px;
  line-height: 1.45;
}

.legal-page {
  background: #fff;
}
.legal-main {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px) 0 72px;
}
.legal-top {
  margin: 0 0 28px;
  font-size: 20px;
  font-weight: 750;
}
.legal-top a {
  color: var(--stan-primary);
  text-decoration-color: rgba(122,112,99,.42);
}
.legal-main h1 {
  margin: 0 0 28px;
  color: var(--stan-text);
  font-size: clamp(38px, 6vw, 64px);
  line-height: .95;
  letter-spacing: -.045em;
}
.legal-main h2,
.legal-main h3,
.legal-main h4 {
  color: var(--stan-text);
  line-height: 1.22;
}
.legal-main h2 {
  margin: 34px 0 12px;
  font-size: clamp(24px, 3vw, 32px);
}
.legal-main h3 {
  margin: 26px 0 8px;
  font-size: 20px;
}
.legal-main h4 {
  margin: 20px 0 6px;
  font-size: 16px;
}
.legal-main p,
.legal-main li {
  color: var(--stan-muted);
  font-size: 15.5px;
  line-height: 1.72;
}
.legal-main a {
  color: var(--stan-primary);
  text-decoration-color: rgba(122,112,99,.38);
}
.legal-main ul,
.legal-main ol { padding-left: 1.25rem; }

@media (min-width: 860px) {
  .page {
    min-height: 100svh;
    align-items: center;
    padding: clamp(28px, 4vw, 54px);
  }
  .linksite {
    width: min(1240px, 100%);
    display: grid;
    grid-template-columns: minmax(360px, 1.05fr) minmax(260px, .55fr) minmax(260px, .55fr);
    gap: clamp(18px, 2.4vw, 30px);
    align-items: stretch;
  }
  .profile {
    min-height: min(760px, calc(100svh - 108px));
    justify-content: center;
    border: 1px solid var(--stan-line);
    border-radius: 34px;
    background: rgba(255, 255, 255, .66);
    padding: clamp(30px, 4vw, 54px);
    box-shadow: var(--stan-shadow);
  }
  .avatar-wrap {
    width: min(28vw, 260px);
    height: min(28vw, 260px);
    padding: 6px;
  }
  .name {
    margin-top: 22px;
    font-size: clamp(36px, 4vw, 58px);
    line-height: .95;
  }
  .bio { font-size: 17px; }
  .socials { margin-top: 24px; gap: 12px; }
  .social { width: 44px; height: 44px; }
  .links {
    grid-column: 2 / 4;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-content: center;
    margin-top: 0;
  }
  .stan-link {
    min-height: 112px;
    grid-template-columns: 78px 1fr 20px;
    gap: 13px;
    border-radius: 22px;
    padding: 10px 12px 10px 10px;
  }
  .thumb {
    width: 78px;
    height: 78px;
    border-radius: 16px;
  }
  .title { font-size: clamp(16px, 1.32vw, 19px); }
  .subtitle { font-size: 12.5px; }
  .legal-card {
    grid-column: 2 / 4;
    justify-content: flex-start;
    margin-top: 2px;
  }
  .note {
    grid-column: 2 / 4;
    max-width: none;
    margin: 0;
    text-align: left;
  }
}

@media (min-width: 760px) and (max-width: 859px) {
  .page { padding-top: 38px; padding-bottom: 48px; }
  .linksite { width: 448px; }
  .avatar-wrap { width: 124px; height: 124px; }
  .name { font-size: 28px; }
  .stan-link { min-height: 92px; border-radius: 20px; }
  .title { font-size: 16.5px; }
}

@media (max-width: 370px) {
  .page { padding-inline: 10px; }
  .stan-link {
    min-height: 78px;
    grid-template-columns: 62px 1fr 18px;
    gap: 10px;
  }
  .thumb { width: 62px; height: 62px; }
  .title { font-size: 14px; }
  .subtitle { font-size: 11.5px; }
}
