a, b, body, button, div, footer, h1, h2, h3, html, i, img, li, main, nav, p, section, small, span, strong, ul {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  background: none;
}
* { box-sizing: border-box; }
ul { list-style: none; }

:root {
  --sans: 'Poppins', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --ink: #000;
  --ink-soft: #0d0d0d;
  --text: #3a3a3a;
  --text-2: #707070;
  --paper: #fff;
}

html, body {
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1;
}
a { color: inherit; text-decoration: none; }

.doc {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.doc__main {
  flex: 1 0 auto;
  width: min(42rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.75rem 0 6rem;
}
.doc__brand {
  display: block;
  width: 6.75rem;
  height: 2.85rem;
  margin-bottom: 2.75rem;
  background: var(--ink);
  -webkit-mask: url("../assets/madam-mark.svg") center / contain no-repeat;
  mask: url("../assets/madam-mark.svg") center / contain no-repeat;
}
.doc__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.doc__back:hover { color: var(--ink); }
.doc__back svg { width: 16px; height: 16px; }

.doc__main h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 0.65rem;
}
.doc__updated {
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 2.75rem;
}
.doc__main h2 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 2.5rem 0 0.85rem;
}
.doc__main h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 1.5rem 0 0.55rem;
}
.doc__main p,
.doc__main li {
  color: var(--text);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
}
.doc__main p { margin-bottom: 1rem; }
.doc__main ul {
  margin: 0 0 1.15rem 1.15rem;
  list-style: disc;
}
.doc__main li { margin-bottom: 0.45rem; padding-left: 0.15rem; }
.doc__main li::marker { color: #b0b0b0; }
.doc__main a:not(.doc__brand):not(.doc__back) {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.doc__main a:not(.doc__brand):not(.doc__back):hover { color: var(--text-2); }
.doc__main strong { font-weight: 600; color: var(--ink-soft); }

.footer { width: 100%; padding: 10px 0; flex-shrink: 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
  padding: 0 2em 1em;
  font-size: 0.875rem;
  font-weight: 600;
}
.footer__copy { color: var(--ink-soft); font-size: 0.875rem; font-weight: 500; }
.footer__nav { display: flex; align-items: center; gap: 1.75rem; }
.footer__link { font-size: 0.95rem; font-weight: 600; transition: opacity 0.3s; }
.footer__link:hover { opacity: 0.5; }
.footer__stores { display: flex; align-items: center; justify-content: flex-end; }
.stores { display: flex; gap: 8px; }
.stores img { height: 36px; display: block; transition: transform 0.2s ease; }
.stores img:hover { transform: scale(1.05); }

@media (max-width: 840px) {
  .doc__main { width: min(42rem, calc(100% - 2rem)); padding-top: 1.75rem; padding-bottom: 4rem; }
  .doc__brand { width: 5.5rem; height: 2.3rem; margin-bottom: 2rem; }
  .footer__inner { grid-template-columns: 1fr; justify-items: center; padding: 0 1em 0.6em; gap: 0.85rem; }
  .footer__stores { order: 1; justify-content: center; }
  .footer__nav { order: 2; width: 100%; justify-content: center; gap: 1.15rem; }
  .footer__link { font-size: 0.8rem; }
  .footer__copy { order: 3; font-size: 0.75rem; opacity: 0.55; }
  .stores img { height: 32px; }
}
