:root {
  --pink: #e91e63;
  --pink-dark: #c2185b;
  --pink-soft: #fde8ef;
  --pink-line: #f3c5d4;
  --text: #1c1c1c;
  --muted: #5a5a5a;
  --bg: #f7f4f5;
  --card: #ffffff;
  --border: #eadfe3;
  --track: #f3ecef;
  --shadow: 0 1px 2px rgba(28, 10, 16, 0.04), 0 10px 28px rgba(28, 10, 16, 0.05);
  --focus: #e91e63;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 17px;
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  color: var(--text);
  background: var(--card);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
  position: absolute;
  top: 12px;
  left: 16px;
  z-index: 100;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 14px;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: nowrap;
  border: 2px solid var(--pink);
  border-radius: 8px;
  color: var(--text);
  background: var(--card);
}

.shell {
  width: 100%;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  text-align: left;
}

header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

header .shell {
  padding-top: 28px;
  padding-bottom: 4px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.topbar {
  display: contents;
}

.hero {
  display: contents;
}

.brand {
  margin: 0 0 18px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 5.4vw, 40px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

header h1 {
  text-align: center;
}

.updated {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

header .updated {
  text-align: center;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 32px;
  margin: 22px 0 0;
  padding: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border);
}

.legal-nav a,
.legal-nav a:link,
.legal-nav a:visited {
  flex: 0 0 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 2px 12px;
  border-radius: 0;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  color: #8a8688;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: center;
  line-height: 1.25;
  white-space: nowrap;
}

.legal-nav a:hover:not([aria-current="page"]),
.legal-nav a:hover:not([aria-current="page"]):link,
.legal-nav a:hover:not([aria-current="page"]):visited {
  color: #e91e63;
  background: transparent;
  font-weight: 400;
}

.legal-nav a[aria-current="page"],
.legal-nav a[aria-current="page"]:link,
.legal-nav a[aria-current="page"]:visited,
.legal-nav a[aria-current="page"]:hover,
.legal-nav a[aria-current="page"]:active,
.legal-nav a[aria-current="page"]:focus,
.legal-nav a[aria-current="page"]:focus-visible {
  background: transparent;
  color: #e91e63;
  font-weight: 700;
  border: 0;
  box-shadow: inset 0 -2px 0 #e91e63;
}

.legal-nav a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

main {
  flex: 1;
  padding: 24px 0 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

main .shell {
  width: 100%;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.document {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  width: 100%;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.document section,
main > section {
  background: transparent;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
  padding: 32px 40px;
  margin: 0;
}

.document section:last-child,
main > section:last-child {
  border-bottom: 0;
}

h2 {
  margin: 0 0 14px;
  font-size: 1.28rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.05rem;
  margin: 24px 0 8px;
  font-weight: 600;
}

p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

ul, ol {
  margin: 8px 0 14px;
  padding-left: 1.35em;
}

li { margin: 6px 0; }

.contact {
  border-left: 3px solid var(--pink);
  padding: 4px 0 4px 18px;
  margin-top: 8px;
}

.note {
  background: #fff8fa;
  border: 1px solid var(--pink-line);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 14px 0 0;
  font-size: 16px;
}

.cta,
.cta:link,
.cta:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  margin: 10px 0 4px;
  background: var(--pink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
}

.cta:hover,
.cta:hover:link,
.cta:hover:visited {
  color: #fff;
  background: var(--pink-dark);
}

.cta:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

a {
  color: var(--pink-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--pink);
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

a.external-link::after {
  content: " (opens Apple's website)";
  font-size: 0.86em;
  font-weight: 600;
  white-space: nowrap;
}

/* Final lock after global `a` rules. :visited must not invert hierarchy. */
.legal-nav a:link,
.legal-nav a:visited {
  color: #8a8688 !important;
  font-weight: 400 !important;
  background-color: transparent;
}

.legal-nav a[aria-current="page"]:link,
.legal-nav a[aria-current="page"]:visited,
.legal-nav a[aria-current="page"]:hover,
.legal-nav a[aria-current="page"]:active,
.legal-nav a[aria-current="page"]:focus {
  color: #e91e63 !important;
  font-weight: 700 !important;
  background-color: transparent;
}

.legal-nav a:hover:not([aria-current="page"]):link,
.legal-nav a:hover:not([aria-current="page"]):visited {
  color: #e91e63 !important;
  font-weight: 400 !important;
}

footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 36px 0 40px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-brand {
  margin: 0 0 10px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 4px;
  margin-bottom: 8px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--pink-dark);
  text-decoration: underline;
}

.footer-contact {
  margin: 0;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.copyright {
  margin: 10px 0 0;
  font-size: 13px;
}

@media (max-width: 640px) {
  header .shell {
    padding-top: 22px;
  }

  .legal-nav {
    gap: 6px 24px;
  }

  .legal-nav a,
  .legal-nav a:link,
  .legal-nav a:visited {
    font-size: 14px;
  }

  .document {
    border-radius: 12px;
  }

  .document section,
  main > section {
    padding: 26px 20px;
  }

  main {
    padding-bottom: 48px;
  }
}

@media (max-width: 480px) {
  .legal-nav {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .legal-nav a,
  .legal-nav a:link,
  .legal-nav a:visited {
    white-space: nowrap;
  }
}
