/* === IMPORT FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Noto Serif JP', 'Georgia', 'Times New Roman', serif;
  background-color: #f0f8ff; /* same as container background for seamless look */
  color: #1a1f2b;
  line-height: 1.7;
  padding: 0;
  margin: 0;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  background: #f0f8ff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}


/* === HEADER === */
header {
  background-color: white;
  color: #001f3f;
  border-bottom: 1px solid #e2e8f0;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

.logo-text h1 {
  font-size: clamp(1rem, 1vw + 0.5rem, 1.4rem);
  color: #1a2a48;
  margin: 0;
  letter-spacing: 1px;
}

.logo-text .tagline {
  font-size: 0.9rem;
  color: #7c8a9a;
  margin-top: 4px;
  font-style: italic;
  letter-spacing: 0.3px;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-label {
  font-weight: bold;
}

#language-select {
  padding: 0.3rem;
  font-size: 1rem;
}

/* === NAVIGATION === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #001f3f;
  padding: 1rem 2rem;
  border-radius: 8px;
  flex-wrap: wrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  position: relative;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-brand {
  font-weight: bold;
  font-size: 1rem;
  color: #e4e7ef;
  white-space: nowrap;
}

.hamburger {
  font-size: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #ffffff;
  display: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem; /* or reduce this if needed */
  flex-wrap: nowrap; /* prevent wrapping */
  overflow-x: auto; /* optional: allow scrolling if really needed */
  white-space: nowrap;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: #d3d3d3;
  padding: 0.5rem 0.75rem; /* narrower */
  flex-shrink: 1; /* allow shrinking */
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: #0056a1;
  color: #fff;
  border-bottom: 2px solid #fff;
}

/* === ATTORNEY INFO === */
.attorney-info {
  padding: 2rem;
  text-align: center;
  font-size: 1rem;
  color: #1a1f2b;
  font-family: 'Georgia', serif;
}

.attorney-info a {
  color: #0056b3;
  text-decoration: none;
}

/* === SECTION HEADINGS === */
.attorney-heading {
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 2.5rem);
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #1a2a48;
  margin-bottom: 0.5rem;
  text-align: center;
}

.attorney-subheading {
  font-size: 1.2rem;
  color: #5a5a5a;
  max-width: 600px;
  margin: 0 auto 2rem;
  font-style: italic;
  letter-spacing: 0.2px;
  text-align: center;
}

/* === IMPRINT SECTION === */
.imprint {
  padding: 3rem 2rem;
  max-width: 900px;
  margin: auto;
}

.imprint p {
  margin: 0.5rem 0 1rem;
}

.imprint a {
  color: #0056b3;
  text-decoration: underline;
}

.imprint a:hover {
  color: #1a1f2b;
}

/* === NUMBERED LIST STYLE === */
.privacy-list {
  list-style: none;
  counter-reset: section;
  padding-left: 0;
  margin-top: 2rem;
}

.privacy-list li {
  margin-bottom: 3rem;
  padding-left: 1.5rem;
}

.privacy-list li h2 {
  font-size: 1.5rem;
  color: #1a2a48;
  margin-bottom: 0.8rem;
  position: relative;
}

.privacy-list li h2::before {
  counter-increment: section;
  content: none;
  font-size: 1.5rem;
  color: #0056a1;
  position: absolute;
  left: -2rem;
  font-weight: bold;
}

.privacy-list li p,
.privacy-list li ul {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.privacy-list li ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
  list-style-type: disc;
}

/* === FOOTER === */
.social-links {
  margin-top: 1rem;
}

.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background-color: #0077b5;
  color: #fff;
  border-radius: 6px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.linkedin-btn img {
  width: 20px;
  height: 20px;
}

.linkedin-btn:hover {
  background-color: #005e93;
}
footer {
  background-color: #001f3f;
  color: #d3dce6;
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}

footer a {
  color: #d3dce6;
  margin: 0 0.5rem;
  text-decoration: none;
}

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

.designer-credit {
  margin-top: 2rem;
  font-size: 0.85rem;
  font-family: 'Georgia', serif;
  color: #b5bcc8;
  letter-spacing: 0.4px;
  opacity: 0.4;
}

.designer-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.designer-link:hover {
  opacity: 0.8;
  border-bottom: 1px solid #ffffff;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  body {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
  }
  .nav-links {
    gap: 1rem;
    justify-content: center;
  }

  .nav-links a {
    padding: 0.4rem 0.6rem;
    font-size: 0.95rem;
  }
  }

 @media (max-width: 1024px) {
  .imprint {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }

  .imprint > *,
  .privacy-list {
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  .privacy-list li {
    padding-left: 0;
    padding-right: 0;
  }
  header,
footer {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}
}



@media (max-width: 768px) {
    body {
    padding: 0;
    display: block; /* removes flex centering */
  }

   .container {
    border-radius: 0;
    box-shadow: none;
    margin: 0;
  }

  .imprint {
    max-width: 100%;
    padding: 1rem;
  }
  .logo-text h1 {
    font-size: 1rem;
    text-align: center;
  }

  .clock-container {
    flex-direction: column;
    align-items: center;
  }

  .logo-row {
    flex-direction: column;
    align-items: center;
  }

  .navbar {
    flex-direction: column;
    align-items: center;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    background-color: #001f3f;
    border-radius: 8px;
    padding: 1rem;
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .nav-links a {
    text-align: center;
    width: 100%;
  }

  .language-toggle {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  body {
    padding: 20px;
  }

  header {
    flex-direction: column;
    align-items: center;
  }

  .logo-icon {
    width: 40px;
    height: auto;
  }

  .logo-text h1 {
    font-size: 0.8rem;
  }

  .logo-text .tagline {
    font-size: 0.75rem;
    text-align: center;
  }

  .language-toggle {
    flex-direction: row;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .lang-label {
    font-size: 0.8rem;
  }

  .attorney-heading {
    font-size: 1.5rem;
  }

  .attorney-info {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .privacy-list li h2 {
    font-size: 1.2rem;
  }
}

@media (max-width: 400px) {
  .popup-content {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .popup-button {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  .close-btn {
    font-size: 1.2rem;
    top: 8px;
    right: 10px;
  }
}

@media print {
  nav,
  footer,
  .hamburger,
  .language-toggle {
    display: none;
  }

  .popup-content {
    width: 95vw;
    padding: 1rem;
    font-size: 0.85rem;
  }

  .popup-button {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}
