/* =====================================================
   Icon BJJ — Privacy Policy
   style.css — all styles for index.html
   Managed by Dettogni
===================================================== */

/* =====================================================
   FONTS — self-hosted, /fonts/ at repo root
===================================================== */
@font-face {
  font-family: 'Syne';
  src: url('/fonts/syne-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Syne';
  src: url('/fonts/syne-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Syne';
  src: url('/fonts/syne-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Syne';
  src: url('/fonts/syne-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans-300-italic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* Fallback metric overrides — reduce layout shift while fonts load.
   Starter values; tune against the live page in DevTools > Rendering
   > Layout Shift Regions per skill Section 2 Step 3. */
@font-face {
  font-family: 'Syne Fallback';
  src: local('Arial');
  size-adjust: 108%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'DM Sans Fallback';
  src: local('Arial');
  size-adjust: 104%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}

/* =====================================================
   DESIGN TOKENS
===================================================== */
:root {
  --canvas:       #F5F2EE;
  --canvas-deep:  #EDE9E3;
  --canvas-warm:  #E8E3DB;
  --ink:          #1A2B3C;
  --ink-mid:      #3D4F60;
  --ink-light:    #7A8A96;
  --accent:       #C4571A;
  --accent-hover: #A84514;
  --accent-pale:  #F5E9E2;
  --white:        #FEFCFA;

  --ff-display: 'Syne', 'Syne Fallback', sans-serif;
  --ff-body:    'DM Sans', 'DM Sans Fallback', sans-serif;

  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-pill: 100px;

  --shadow-card: 0 2px 20px rgba(26, 43, 60, 0.08);
  --shadow-lift: 0 12px 40px rgba(26, 43, 60, 0.12);

  --max-w:    1280px;
  --side-pad: clamp(1.25rem, 5vw, 3rem);
}

/* =====================================================
   BASE
===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Offset anchor links so fixed nav doesn't overlap headings */
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 300;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  /* Remove tap highlight on mobile */
  -webkit-tap-highlight-color: transparent;
}

/* Subtle canvas texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
ul { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  /* Remove tap delay on mobile */
  touch-action: manipulation;
}

::selection {
  background: var(--accent);
  color: var(--white);
}

/* =====================================================
   TYPOGRAPHY
===================================================== */
.t-display {
  font-family: var(--ff-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.t-display em {
  font-style: italic;
  color: var(--accent);
  font-weight: 800;
}
.t-heading {
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.t-label {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* =====================================================
   LAYOUT
===================================================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

.section {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

/* =====================================================
   SKIP LINK
===================================================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.85rem;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* =====================================================
   NAVIGATION
===================================================== */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
  padding: 0.5rem 0;
}
#nav.scrolled {
  background: rgba(245, 242, 238, 0.88);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border-bottom-color: var(--canvas-warm);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem var(--side-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav-logo .icon-logo {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
  border-radius: 3px;
}
.nav-logo .global-tag {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-light);
  padding-left: 0.75rem;
  margin-left: 0.25rem;
  border-left: 1px solid var(--canvas-warm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ink-mid);
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.78rem;
  transition: all 0.2s ease;
}
.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav-hamburger span {
  width: 22px;
  height: 1.8px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: block;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile full-screen menu */
#mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--canvas);
  z-index: 99;
  padding: 5.5rem var(--side-pad) 2rem;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.35s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#mobile-menu.open {
  display: flex;
  opacity: 1;
}
#mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
#mobile-menu nav a {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--ink);
  padding: 1rem 0;
  border-bottom: 1px solid var(--canvas-warm);
  letter-spacing: -0.01em;
  /* Adequate tap target height */
  min-height: 56px;
  display: flex;
  align-items: center;
}
#mobile-menu nav a:last-child {
  color: var(--accent);
  border-bottom: none;
}
.mob-foot {
  font-size: 0.75rem;
  color: var(--ink-light);
  letter-spacing: 0.08em;
  line-height: 1.8;
  padding-top: 2rem;
}


/* =====================================================
   FOOTER
===================================================== */
footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo {
  color: var(--white);
  margin-bottom: 1.25rem;
}
.footer-brand .nav-logo .global-tag {
  color: rgba(255, 255, 255, 0.55);
  border-left-color: rgba(255, 255, 255, 0.15);
}
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
  max-width: 300px;
}
.footer-col h4 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-col a {
  font-family: var(--ff-body);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom .social { display: flex; gap: 1.25rem; }
.footer-bottom .social a {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.footer-bottom .social a:hover { color: var(--accent); }

/* =====================================================
   KEEP BY DETTOGNI PROVIDER CREDIT
===================================================== */
.footer-keep {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem var(--side-pad);
  text-align: center;
  font-family: var(--ff-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.28);
}
.footer-keep a {
  color: rgba(255, 255, 255, 0.46);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-keep a:hover {
  color: var(--white);
}

/* =====================================================
   PAGE HEADER
===================================================== */
#page-header {
  padding: clamp(7rem, 12vw, 9rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-light);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--ink-light); transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { color: var(--ink); }

#page-header h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-top: 0.75rem;
}
.page-header-sub {
  color: var(--ink-light);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

/* =====================================================
   POLICY CONTENT
===================================================== */
.policy-container {
  max-width: 760px;
}
.policy-intro {
  color: var(--ink-mid);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--canvas-warm);
}
#policy h2 {
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.35rem;
  color: var(--ink);
  margin-top: 2.5rem;
  margin-bottom: 0.9rem;
}
#policy h2:first-of-type { margin-top: 0; }
#policy p {
  color: var(--ink-mid);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
#policy a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.policy-list {
  list-style: none;
  margin-bottom: 1rem;
}
.policy-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-mid);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 0.85rem;
}
.policy-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.policy-list strong {
  color: var(--ink);
  font-weight: 600;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 768px) {
  html { scroll-padding-top: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { justify-content: center; text-align: center; flex-direction: column; gap: 0.75rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .social { justify-content: center; }
}
