/* Maarjv Safaris Privacy Notice */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-serif-display-latin-400-normal.woff2") format("woff2");
}

:root {
  --forest: #283f12;
  --forest-deep: #1c2e0c;
  --beige: #d8c5a3;
  --beige-soft: #f3ede0;
  --beige-line: #e4d8bf;
  --olive: #5b5b37;
  --orange: #d38125;
  --terracotta: #913a14;
  --ink: #1f2417;
  --paper: #ffffff;

  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;

  --gutter: 20px;
  --measure: 40rem;
  --nav-bar-h: 56px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--terracotta);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--forest);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
}
.skip-link:focus {
  top: 0;
  outline-color: var(--orange);
}

/* Header */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--beige-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 76rem;
  margin: 0 auto;
  padding: 14px var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.brand img {
  width: 150px;
  height: auto;
}
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--forest);
  border-radius: 999px;
  color: var(--forest);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.back-link:hover {
  background: var(--forest);
  color: #fff;
}

/* Introduction */

.intro {
  position: relative;
  background-color: var(--forest);
  background-image: url("../img/privacy-hero.webp");
  background-repeat: no-repeat;
  background-position: 78% 77%;
  background-size: cover;
  color: #f6f0e4;
  overflow: hidden;
}
.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--forest) 0%,
    var(--forest) 40%,
    rgba(40, 63, 18, 0.9) 52%,
    rgba(40, 63, 18, 0.5) 72%,
    rgba(40, 63, 18, 0.14) 100%
  );
}
.intro__inner {
  position: relative;
  max-width: 76rem;
  margin: 0 auto;
  padding: 44px var(--gutter) 48px;
}
.intro__eyebrow {
  margin: 0 0 14px;
  color: var(--beige);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.intro h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: #fff;
}
.intro__lead {
  max-width: 34rem;
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #efe6d2;
}

/* Page layout */

.page {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* On this page navigation */

.toc {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 calc(var(--gutter) * -1);
  background: var(--beige-soft);
  border-bottom: 1px solid var(--beige-line);
}
.toc details {
  position: relative;
}
.toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-bar-h);
  padding: 0 var(--gutter);
  color: var(--forest);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.toc summary::-webkit-details-marker {
  display: none;
}
.toc summary::after {
  content: "";
  width: 10px;
  height: 10px;
  margin-left: 12px;
  border-right: 2.5px solid var(--forest);
  border-bottom: 2.5px solid var(--forest);
  transform: translateY(-3px) rotate(45deg);
}
.toc details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}
.toc__current {
  display: block;
  margin-top: 1px;
  color: var(--olive);
  font-size: 0.875rem;
  font-weight: 500;
}
.toc__list {
  list-style: none;
  margin: 0;
  padding: 4px 0 12px;
  max-height: calc(100vh - var(--nav-bar-h) - 24px);
  max-height: calc(100dvh - var(--nav-bar-h) - 24px);
  overflow-y: auto;
  background: var(--beige-soft);
  border-bottom: 1px solid var(--beige-line);
  box-shadow: 0 14px 24px rgba(31, 36, 23, 0.12);
}
.toc__list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px var(--gutter);
  border-left: 4px solid transparent;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: none;
}
.toc__list a:hover {
  background: rgba(216, 197, 163, 0.35);
}
.toc__list a[aria-current="true"] {
  border-left-color: var(--terracotta);
  background: rgba(216, 197, 163, 0.45);
  color: var(--forest);
  font-weight: 700;
}

/* Content */

.notice {
  padding: 40px 0 24px;
}
.notice section {
  scroll-margin-top: calc(var(--nav-bar-h) + 16px);
  padding: 0 0 40px;
  margin: 0 0 40px;
  border-bottom: 1px solid var(--beige-line);
}
.notice section:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
}
.notice h2 {
  max-width: var(--measure);
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.12;
  letter-spacing: -0.005em;
  text-wrap: balance;
  color: var(--forest);
}
.notice h3 {
  margin: 28px 0 8px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--forest);
}
.notice p {
  max-width: var(--measure);
  margin: 0 0 16px;
}
.notice ul {
  max-width: var(--measure);
  margin: 0 0 18px;
  padding-left: 1.25rem;
}
.notice li {
  margin: 0 0 8px;
  padding-left: 4px;
}
.notice li::marker {
  color: var(--terracotta);
}

/* Information groups */

.groups {
  display: grid;
  gap: 24px;
  margin: 24px 0 22px;
}
.group {
  padding-top: 14px;
  border-top: 3px solid var(--olive);
}
.group h3 {
  margin: 0 0 10px;
}
.group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.group li {
  margin: 0 0 6px;
  padding: 0;
  font-size: 1rem;
  line-height: 1.5;
}

/* Statement */

.statement {
  max-width: var(--measure);
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.5vw, 1.875rem);
  line-height: 1.25;
  color: var(--forest);
}

/* Storage panels */

.stores {
  display: grid;
  gap: 16px;
  margin: 22px 0 22px;
}
.store {
  padding: 20px 20px 8px;
  border-radius: 4px;
}
.store h3 {
  margin: 0 0 6px;
}
.store p {
  font-size: 1rem;
}
.store--device {
  background: var(--beige-soft);
  border-left: 5px solid var(--olive);
}
.store--session {
  background: var(--paper);
  border: 2px solid var(--forest);
}
.store__tag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
}
.store--device .store__tag {
  background: var(--olive);
}

.note {
  max-width: var(--measure);
  margin: 0 0 16px;
  padding: 14px 18px;
  background: var(--beige-soft);
  border-left: 5px solid var(--orange);
  font-size: 1rem;
}
.notice .note p {
  margin: 0;
}

.text-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

/* Contact */

.contact {
  max-width: 44rem;
  padding: 28px 24px 30px;
  background: var(--forest);
  color: #f6f0e4;
  border-radius: 4px;
}
.contact h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.5vw, 1.875rem);
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
}
.notice .contact p {
  margin: 0 0 20px;
  color: #efe6d2;
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.btn--primary {
  background: var(--orange);
  color: var(--forest-deep);
}
.btn--primary:hover {
  background: #e2923a;
}
.btn--ghost {
  border: 1.5px solid var(--beige);
  color: #f6f0e4;
}
.btn--ghost:hover {
  background: rgba(216, 197, 163, 0.18);
}
.contact a:focus-visible {
  outline-color: #fff;
}
.notice .contact .contact__email {
  margin: 22px 0 0;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.contact__email a {
  display: inline-block;
  padding: 10px 0;
  margin: -10px 0;
  color: #fff;
  font-weight: 700;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
.contact__email a:hover {
  text-decoration-color: #fff;
}

/* Footer */

.site-footer {
  background: var(--forest-deep);
  color: #d9ceb6;
}
.site-footer__inner {
  display: grid;
  gap: 28px;
  max-width: 76rem;
  margin: 0 auto;
  padding: 44px var(--gutter) 36px;
}
.site-footer img {
  width: 170px;
  height: auto;
  margin-bottom: 14px;
}
.site-footer__tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--beige);
}
.site-footer__email {
  margin: 4px 0 0;
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}
.site-footer__email a {
  display: inline-block;
  padding: 10px 0;
  margin: -10px 0;
  color: #d9ceb6;
  text-decoration-color: rgba(216, 197, 163, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.site-footer__email a:hover {
  color: #fff;
  text-decoration-color: #fff;
}
.site-footer nav ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #f6f0e4;
  text-decoration: none;
}
.site-footer nav a:hover {
  text-decoration: underline;
}
.site-footer a:focus-visible {
  outline-color: #fff;
}
.site-footer__legal {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(216, 197, 163, 0.25);
  font-size: 0.9375rem;
  grid-column: 1 / -1;
}

/* Small phones */

@media (max-width: 599px) {
  .intro {
    background-position: 80% 72%;
  }
  .intro::before {
    background: linear-gradient(
      180deg,
      rgba(40, 63, 18, 0.95) 0%,
      rgba(40, 63, 18, 0.9) 50%,
      rgba(40, 63, 18, 0.78) 100%
    );
  }
}

@media (max-width: 380px) {
  :root {
    --gutter: 16px;
  }
  .brand img {
    width: 128px;
  }
  .back-link {
    padding: 0 12px;
    font-size: 0.875rem;
  }
}

/* Tablet */

@media (min-width: 600px) {
  :root {
    --gutter: 32px;
  }
  .brand img {
    width: 176px;
  }
  .intro__inner {
    padding: 64px var(--gutter) 68px;
  }
  .groups {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  .stores {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .contact {
    padding: 36px 36px 40px;
  }
  .site-footer__inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

/* Desktop */

@media (min-width: 64rem) {
  :root {
    --gutter: 40px;
  }
  .intro__inner {
    padding: 84px var(--gutter) 88px;
  }
  .page {
    display: grid;
    grid-template-columns: 17rem minmax(0, 1fr);
    column-gap: 72px;
    align-items: start;
  }
  .toc {
    top: 24px;
    margin: 56px 0 0;
    background: transparent;
    border-bottom: 0;
    align-self: start;
  }
  .toc summary {
    min-height: 0;
    padding: 0 0 12px;
    margin: 0 0 4px;
    border-bottom: 2px solid var(--forest);
    cursor: default;
    pointer-events: none;
  }
  .toc summary::after {
    display: none;
  }
  .toc__current {
    display: none;
  }
  .toc__list {
    max-height: calc(100vh - 140px);
    padding: 0;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
  }
  .toc__list a {
    min-height: 44px;
    padding: 5px 0 5px 14px;
    font-size: 0.9375rem;
  }
  .notice {
    padding: 56px 0 40px;
  }
  .notice section {
    scroll-margin-top: 24px;
    padding-bottom: 48px;
    margin-bottom: 48px;
  }
  .groups {
    max-width: 52rem;
  }
}

@media (min-width: 90rem) {
  body {
    font-size: 1.125rem;
  }
  :root {
    --measure: 42rem;
  }
  .page {
    grid-template-columns: 18rem minmax(0, 1fr);
    column-gap: 96px;
  }
}

/* Interaction. Colour and shadow changes work for everyone.
   Movement is added only when reduced motion has not been requested. */

.group {
  position: relative;
  isolation: isolate;
}
.group::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -3px -12px -8px -12px;
  border-radius: 4px;
  background: var(--beige-soft);
  box-shadow: 0 10px 22px rgba(31, 36, 23, 0.08);
  opacity: 0;
}
.group:focus-within {
  border-top-color: var(--terracotta);
}
.group:focus-within::before {
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

@media (hover: hover) {
  .group:hover {
    border-top-color: var(--terracotta);
  }
  .group:hover::before {
    opacity: 1;
  }
  .store:hover {
    box-shadow: 0 10px 24px rgba(31, 36, 23, 0.1);
  }
  .store--device:hover {
    border-left-color: var(--orange);
  }
  .store--session:hover {
    border-color: var(--terracotta);
  }
  .btn:hover {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  }
  .back-link:hover {
    box-shadow: 0 6px 14px rgba(40, 63, 18, 0.22);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .group {
    transition: transform 0.22s ease, border-top-color 0.22s ease;
  }
  .group::before {
    transition: opacity 0.22s ease;
  }
  .group:focus-within {
    transform: translateY(-3px);
  }
  .store {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  }
  .btn,
  .back-link {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease,
      border-color 0.2s ease, color 0.2s ease;
  }
  .toc__list a {
    transition: border-left-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .group:hover,
  .store:hover {
    transform: translateY(-3px);
  }
  .btn:hover,
  .back-link:hover {
    transform: translateY(-2px);
  }
  .btn:active,
  .back-link:active {
    transform: translateY(0);
    box-shadow: none;
  }
}

@media (min-width: 64rem) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .toc__list a {
    padding-right: 3px;
    transition: padding 0.2s ease, border-left-color 0.25s ease, background-color 0.25s ease,
      color 0.25s ease;
  }
  .toc__list a:hover {
    padding-left: 17px;
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .group,
  .store,
  .btn,
  .back-link {
    transform: none !important;
  }
}

@media (forced-colors: active) {
  .toc__list a[aria-current="true"] {
    border-left-color: Highlight;
  }
}

@media print {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .site-header,
  .toc,
  .site-footer,
  .contact__actions,
  .skip-link {
    display: none;
  }
  .intro {
    background: none;
    color: #000;
  }
  .intro::before {
    display: none;
  }
  .intro h1,
  .intro__lead,
  .intro__eyebrow {
    color: #000;
  }
  .page {
    display: block;
  }
  .contact {
    background: none;
    color: #000;
    border: 1px solid #000;
  }
  .contact h3,
  .notice .contact p {
    color: #000;
  }
}
