/*
Theme Name: Max Michel
Theme URI: https://max-michel.de
Author: Ahmad Jarkas
Author URI: https://ajarkas.com
Description: Custom Onepage Theme für Max Michel (Theracon). Industrieller Geräteschutz, Verbrauchsmaterialien, Service und Entwicklung.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: max-michel
Tags: one-page, business, custom-colors, responsive-layout
*/

:root {
  --red: #EC1A29;
  --red-dark: #C8141F;
  --red-soft: #FFF0F1;
  --red-tint: #FEF7F7;
  --ink: #1A1A22;
  --ink-2: #2E2E38;
  --bg: #FFFFFF;
  --bg-soft: #F8F8FA;
  --muted: #6B6B75;
  --line: #ECECEF;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
.serif { font-family: 'Newsreader', serif; font-style: italic; font-weight: 500; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo {
  font-weight: 800; font-size: 22px; letter-spacing: -0.03em;
  display: flex; align-items: center; gap: 10px; color: var(--ink);
  text-decoration: none;
}
.logo-mark {
  width: 36px; height: 36px; background: var(--red);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 18px;
}
/* Custom-Logo (WordPress img) auf Header-Höhe begrenzen */
.logo .custom-logo-link { display: flex; align-items: center; line-height: 0; }
.logo img,
.logo .custom-logo {
  height: 40px; width: auto; max-width: 240px;
  display: block; object-fit: contain;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-size: 15px;
  font-weight: 500; transition: color .2s;
}
.custom-logo-link {
    max-width: 200px;
    overflow: hidden;
}
.custom-logo {
    max-width: 100%;
    max-height: 25px;
}

.nav-links a:hover { color: var(--red); }
.btn-primary {
  background: var(--red); color: white; padding: 12px 22px;
  border-radius: 10px; text-decoration: none; font-size: 14px;
  font-weight: 600; transition: all .2s; display: inline-flex;
  align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(236,26,41,0.25); }

/* Hamburger menu — nur Mobile */
.menu-toggle {
  display: none;
  width: 44px; height: 44px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 10px;
  align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
}
.menu-toggle span {
  display: block; width: 18px; height: 2px; background: var(--ink);
  position: relative; transition: all .3s;
}
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--ink); transition: all .3s;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
body.menu-open .menu-toggle span { background: transparent; }
body.menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: white; z-index: 99;
  transform: translateX(100%); transition: transform .3s ease;
  overflow-y: auto; padding: 32px 24px;
}
body.menu-open .mobile-menu { transform: translateX(0); }
.mobile-menu ul { list-style: none; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; color: var(--ink); text-decoration: none;
  font-size: 20px; font-weight: 600; letter-spacing: -0.01em;
}
.mobile-menu a::after {
  content: "→"; color: var(--red); font-weight: 400; font-size: 18px;
}
.mobile-menu .num {
  color: var(--red); font-size: 13px; font-weight: 700;
  letter-spacing: 0.15em; margin-bottom: 8px; display: block;
}
.mobile-menu .menu-cta {
  display: block; margin-top: 32px;
  background: var(--red); color: white;
  padding: 18px; border-radius: 12px;
  text-align: center; font-size: 16px; font-weight: 600;
}
.mobile-menu .menu-cta::after { display: none; }
.mobile-menu .menu-foot {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.mobile-menu .menu-foot a {
  display: inline; padding: 0; font-size: 14px; font-weight: 500;
  color: var(--red);
}
.mobile-menu .menu-foot a::after { display: none; }

/* HERO */
.hero {
  padding: 100px 0 120px; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at top right, rgba(236,26,41,0.05), transparent 50%);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--red); font-weight: 600;
  letter-spacing: 0.05em; margin-bottom: 28px;
}
.hero-eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--red); }
h1 {
  font-weight: 800; font-size: clamp(48px, 6vw, 88px);
  line-height: 1.02; letter-spacing: -0.035em;
  color: var(--ink); margin-bottom: 32px; max-width: 1100px;
}
h1 .red { color: var(--red); }
.hero-pillars {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 64px;
}
.hero-pill {
  background: white; border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 22px; text-decoration: none; color: inherit;
  transition: all .2s; display: flex; flex-direction: column; gap: 8px;
}
.hero-pill:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(236,26,41,0.08); }
.hero-pill .num {
  font-size: 12px; color: var(--red); font-weight: 700;
  letter-spacing: 0.15em;
}
.hero-pill .name {
  font-size: 20px; font-weight: 700; letter-spacing: -0.015em;
}
.hero-pill-mobile-arrow { display: none; }

/* SECTIONS */
section { padding: 100px 0; }
.section-head { margin-bottom: 56px; max-width: 900px; }
.section-label {
  display: inline-block; background: var(--red-soft); color: var(--red);
  padding: 6px 14px; border-radius: 999px; font-size: 13px;
  font-weight: 600; margin-bottom: 20px;
}
h2 {
  font-weight: 800; font-size: clamp(36px, 4.5vw, 56px);
  letter-spacing: -0.035em; line-height: 1.1;
  color: var(--ink); margin-bottom: 20px;
}
h2 .red { color: var(--red); }

/* FEATURE ROWS (Accessories) */
.features { background: var(--bg-soft); }
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; margin-bottom: 120px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse > div:first-child { order: 2; }
.feature-row h3 {
  font-size: clamp(28px, 3vw, 40px); font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 20px;
}
.feature-row p { font-size: 16px; color: var(--ink-2); margin-bottom: 16px; line-height: 1.75; }
.feature-img {
  aspect-ratio: 4/3; border-radius: 20px; background: var(--ink);
  position: relative; overflow: hidden;
  box-shadow: 0 20px 60px rgba(26,26,34,0.12);
}
.feature-img.red { background: var(--red); }
.feature-img::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.1), transparent 60%);
}
.feature-img-label {
  position: absolute; bottom: 28px; left: 28px; color: white;
}
.feature-img-label .small { font-size: 12px; opacity: 0.8; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.feature-img-label .big { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.feature-img svg {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  opacity: 0.4;
}

/* CONSUMABLES BAND */
.consumables-band {
  background: var(--ink); color: white; padding: 120px 0;
  position: relative; overflow: hidden;
}
.consumables-band .section-label { background: rgba(236,26,41,0.2); color: var(--red); }
.consumables-band h2 { color: white; }
.consumables-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; }
.consumables-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 40px; transition: all .3s;
}
.consumables-card:hover { background: rgba(236,26,41,0.08); border-color: var(--red); }
.consumables-card h3 {
  font-size: 26px; font-weight: 700; margin-bottom: 20px;
  letter-spacing: -0.02em; line-height: 1.2;
}
.consumables-card p { font-size: 15px; line-height: 1.75; opacity: 0.9; }

/* SERVICES */
.services-section { background: white; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc {
  background: white; border: 1px solid var(--line);
  border-radius: 20px; padding: 40px 32px; transition: all .3s;
  position: relative;
}
.svc:hover { border-color: var(--red); transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.06); }
.svc-num {
  position: absolute; top: 24px; right: 32px;
  font-weight: 800; font-size: 80px; color: var(--red-tint);
  line-height: 1; letter-spacing: -0.04em;
}
.svc-icon-box {
  width: 56px; height: 56px; background: var(--red);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px; position: relative;
}
.svc h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 14px; position: relative; line-height: 1.25; }
.svc p { font-size: 15px; color: var(--ink-2); line-height: 1.7; }

/* DEVELOPMENT */
.development { background: var(--bg-soft); position: relative; overflow: hidden; }
.dev-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.development .section-label { margin-bottom: 24px; }
.development p { font-size: 16px; color: var(--ink-2); line-height: 1.75; margin-bottom: 16px; }
.dev-visual {
  aspect-ratio: 1; background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 24px; position: relative; overflow: hidden;
  box-shadow: 0 20px 60px rgba(236,26,41,0.25);
}
.dev-visual::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), transparent 50%),
    repeating-linear-gradient(45deg, transparent 0, transparent 30px, rgba(255,255,255,0.04) 30px, rgba(255,255,255,0.04) 31px);
}
.dev-visual-text {
  position: absolute; bottom: 40px; left: 40px; right: 40px; color: white;
}
.dev-visual-text .small { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.8; }
.dev-visual-text .big {
  font-size: clamp(32px, 5vw, 48px); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.05; margin-top: 12px;
}

/* BRANDS */
.brands-section { padding: 100px 0; }
.brands-intro {
  text-align: left; max-width: 900px; margin-bottom: 48px;
  font-size: 17px; color: var(--ink-2); line-height: 1.75;
}
.brands-intro strong { color: var(--ink); font-weight: 700; }
.brand-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-tag {
  background: white; border: 1px solid var(--line);
  padding: 12px 20px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--ink);
  transition: all .2s; cursor: default;
}
.brand-tag:hover { background: var(--red); color: white; border-color: var(--red); }

/* CONTACT */
.contact { padding: 120px 0; background: var(--bg-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact-info h2 { margin-bottom: 20px; }
.contact-info p { font-size: 17px; color: var(--ink-2); line-height: 1.7; }
.contact-list { margin-top: 36px; list-style: none; }
.contact-list li {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 15px; font-weight: 500;
}
.contact-list .ic {
  width: 44px; height: 44px; background: white; border: 1px solid var(--line);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: var(--red); font-weight: 700; flex-shrink: 0;
}

/* WPForms Wrapper */
.mm-form-wrapper {
  background: white; padding: 40px; border-radius: 24px;
  border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,0.04);
}
.mm-form-wrapper .wpforms-form { background: transparent; padding: 0; border: 0; box-shadow: none; }
.mm-form-wrapper .wpforms-field { padding: 0 0 16px 0; }
.mm-form-wrapper .wpforms-field-label {
  display: block !important; font-size: 13px !important;
  font-weight: 600 !important; margin-bottom: 8px !important;
  color: var(--ink) !important;
}
.mm-form-wrapper .wpforms-field input[type="text"],
.mm-form-wrapper .wpforms-field input[type="email"],
.mm-form-wrapper .wpforms-field input[type="tel"],
.mm-form-wrapper .wpforms-field input[type="url"],
.mm-form-wrapper .wpforms-field input[type="number"],
.mm-form-wrapper .wpforms-field textarea,
.mm-form-wrapper .wpforms-field select {
  width: 100% !important; padding: 14px 16px !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important; font-size: 15px !important;
  font-family: inherit !important;
  background: var(--bg-soft) !important; color: var(--ink) !important;
  transition: all .2s !important;
  -webkit-appearance: none; appearance: none;
}
.mm-form-wrapper .wpforms-field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%236B6B75' d='M6 8L0 0h12z'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  padding-right: 40px !important;
}
.mm-form-wrapper .wpforms-field input:focus,
.mm-form-wrapper .wpforms-field textarea:focus,
.mm-form-wrapper .wpforms-field select:focus {
  outline: none !important; border-color: var(--red) !important;
  background: white !important;
  box-shadow: 0 0 0 3px var(--red-soft) !important;
}
.mm-form-wrapper .wpforms-field textarea { min-height: 110px !important; resize: vertical !important; }
.mm-form-wrapper .wpforms-submit-container { padding: 8px 0 0 0 !important; }
.mm-form-wrapper .wpforms-submit,
.mm-form-wrapper button[type="submit"] {
  width: 100% !important; background: var(--red) !important;
  color: white !important; padding: 16px !important;
  border-radius: 12px !important; font-size: 16px !important;
  font-weight: 600 !important; border: none !important;
  cursor: pointer !important; transition: background .2s !important;
  font-family: inherit !important;
}
.mm-form-wrapper .wpforms-submit:hover,
.mm-form-wrapper button[type="submit"]:hover { background: var(--red-dark) !important; }
.mm-form-wrapper .wpforms-error,
.mm-form-wrapper label.wpforms-error {
  color: var(--red) !important; font-size: 12px !important;
  font-weight: 500 !important; margin-top: 4px !important;
  display: block !important;
}
.mm-form-wrapper input.wpforms-error,
.mm-form-wrapper textarea.wpforms-error,
.mm-form-wrapper select.wpforms-error {
  border-color: var(--red) !important;
}
.mm-form-wrapper .wpforms-required-label { color: var(--red) !important; }
.mm-form-wrapper .wpforms-confirmation-container {
  background: var(--red-soft) !important; border: 1px solid var(--red) !important;
  color: var(--ink) !important; padding: 20px !important;
  border-radius: 12px !important; font-size: 15px !important;
}

/* FOOTER */
.site-footer { background: var(--ink); color: white; padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand { font-size: 24px; font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.footer-brand .logo-mark { background: var(--red); width: 32px; height: 32px; font-size: 16px; }
.footer-tagline { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.7; }
.footer-col h5 { font-size: 14px; margin-bottom: 20px; font-weight: 700; }
.footer-col a { display: block; color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 32px;
  font-size: 13px; color: rgba(255,255,255,0.5);
}

/* Mobile sticky CTA */
.mobile-cta { display: none; }

/* ============================================
   MOBILE BREAKPOINT
   ============================================ */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .nav { height: 64px; padding: 0; }
  .logo { font-size: 18px; }
  .logo img, .logo .custom-logo { height: 32px; max-width: 170px; }
  .logo-mark { width: 32px; height: 32px; font-size: 16px; }
  .nav-links, .nav .btn-primary { display: none; }
  .menu-toggle { display: flex; }
  .mobile-menu { display: block; }

  .hero { padding: 56px 0 64px; }
  .hero-eyebrow { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
  h1 { font-size: clamp(38px, 11vw, 52px); letter-spacing: -0.03em; margin-bottom: 32px; }
  .hero-pillars { grid-template-columns: 1fr; gap: 12px; margin-top: 40px; }
  .hero-pill { padding: 20px 22px; flex-direction: row; align-items: center; justify-content: space-between; }
  .hero-pill > div:first-of-type { flex: 1; min-width: 0; }
  .hero-pill .name { font-size: 18px; }
  .hero-pill-mobile-arrow {
    display: flex;
    width: 36px; height: 36px; background: var(--red-soft);
    border-radius: 50%; align-items: center; justify-content: center;
    color: var(--red); font-weight: 700; flex-shrink: 0;
  }

  section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .section-label { font-size: 12px; margin-bottom: 14px; }
  h2 { font-size: clamp(28px, 8vw, 36px); }

  .feature-row { grid-template-columns: 1fr; gap: 0; margin-bottom: 56px; display: block; }
  .feature-row.reverse > div:first-child { order: initial; }
  .feature-row > div:first-child { order: 2; }
  .feature-row .feature-img { order: 1; margin-bottom: 20px; border-radius: 16px; box-shadow: none; }
  .feature-row h3 { font-size: 22px; margin-bottom: 16px; }
  .feature-row p { font-size: 15px; line-height: 1.65; }
  .feature-img-label { bottom: 20px; left: 20px; }
  .feature-img-label .small { font-size: 11px; }
  .feature-img-label .big { font-size: 20px; }

  .consumables-band { padding: 64px 0; }
  .consumables-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
  .consumables-card { padding: 28px 24px; border-radius: 16px; }
  .consumables-card h3 { font-size: 20px; margin-bottom: 14px; }
  .consumables-card p { font-size: 14px; line-height: 1.7; }

  .svc-grid { grid-template-columns: 1fr; gap: 16px; }
  .svc { padding: 28px 24px; border-radius: 16px; }
  .svc-num { font-size: 56px; top: 18px; right: 24px; }
  .svc-icon-box { width: 48px; height: 48px; margin-bottom: 20px; }
  .svc h3 { font-size: 18px; margin-bottom: 12px; }
  .svc p { font-size: 14px; line-height: 1.65; }

  .dev-grid { grid-template-columns: 1fr; gap: 28px; }
  .development p { font-size: 15px; line-height: 1.7; }
  .dev-visual { aspect-ratio: 16/10; border-radius: 16px; }
  .dev-visual-text { bottom: 24px; left: 24px; right: 24px; }
  .dev-visual-text .small { font-size: 11px; }
  .dev-visual-text .big { font-size: 24px; }

  .brands-section { padding: 64px 0; }
  .brands-intro { font-size: 15px; margin-bottom: 28px; }
  .brand-tag { padding: 10px 16px; font-size: 14px; }

  .contact { padding: 64px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-info p { font-size: 15px; }
  .contact-list { margin-top: 24px; }
  .contact-list li { padding: 14px 0; font-size: 14px; }
  .contact-list .ic { width: 40px; height: 40px; }

  .mm-form-wrapper { padding: 24px; border-radius: 18px; }
  .mm-form-wrapper .wpforms-field input,
  .mm-form-wrapper .wpforms-field textarea,
  .mm-form-wrapper .wpforms-field select { font-size: 16px !important; }

  .site-footer { padding: 48px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
  .footer-col { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .footer-grid > div:first-child { padding-bottom: 32px; margin-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .footer-col h5 { font-size: 13px; margin-bottom: 14px; color: var(--red); letter-spacing: 0.05em; text-transform: uppercase; }
  .footer-col a { font-size: 15px; padding: 8px 0; }
  .footer-bottom { padding-top: 24px; font-size: 12px; text-align: center; border-top: none; }

  .mobile-cta {
    display: flex;
    position: fixed; bottom: 16px; left: 16px; right: 16px;
    background: var(--red); color: white;
    padding: 14px 20px; border-radius: 14px;
    text-decoration: none; font-size: 15px; font-weight: 700;
    align-items: center; justify-content: space-between;
    box-shadow: 0 8px 24px rgba(236,26,41,0.35);
    z-index: 50;
    transition: opacity .3s, transform .3s;
  }
  .mobile-cta.hide { opacity: 0; transform: translateY(120%); pointer-events: none; }
  .mobile-cta .icon {
    width: 28px; height: 28px; background: rgba(255,255,255,0.2);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
  }
}

@media (max-width: 380px) {
  .container { padding: 0 16px; }
  h1 { font-size: 36px; }
  .feature-img-label .big { font-size: 18px; }
}

/* ============================================
   LEGAL PAGES (Impressum, Datenschutz)
   ============================================ */
.legal-page {
  padding: 80px 0 120px;
  background: var(--bg);
  min-height: 60vh;
}
.legal-page .container { max-width: 820px; }

.legal-header {
  padding-bottom: 40px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.legal-header .section-label { margin-bottom: 20px; }
.legal-header h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 16px;
  max-width: none;
}
.legal-header .legal-date {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

/* Content typography */
.legal-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
}
.legal-content > * + * { margin-top: 1em; }

.legal-content h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
  margin-top: 56px !important;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.legal-content h2:first-child {
  margin-top: 0 !important;
  padding-top: 0;
  border-top: none;
}

.legal-content h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
  margin-top: 32px !important;
  margin-bottom: 12px;
}

.legal-content h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 24px !important;
  margin-bottom: 8px;
}

.legal-content p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
}

.legal-content a {
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s;
  word-break: break-word;
}
.legal-content a:hover {
  color: var(--red-dark);
  text-decoration-thickness: 2px;
}

.legal-content strong { color: var(--ink); font-weight: 700; }
.legal-content em { font-style: italic; }

.legal-content ul, .legal-content ol {
  margin: 16px 0;
  padding-left: 24px;
}
.legal-content ul li, .legal-content ol li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.legal-content ul li::marker { color: var(--red); }
.legal-content ol li::marker { color: var(--red); font-weight: 700; }

.legal-content blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--bg-soft);
  border-left: 3px solid var(--red);
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  color: var(--ink-2);
}
.legal-content blockquote p:last-child { margin-bottom: 0; }

.legal-content code {
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: var(--red);
}

.legal-content pre {
  background: var(--ink);
  color: white;
  padding: 20px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 24px 0;
}
.legal-content pre code {
  background: transparent;
  color: white;
  padding: 0;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.legal-content table thead {
  background: var(--bg-soft);
}
.legal-content table th {
  text-align: left;
  padding: 14px 16px;
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.legal-content table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.legal-content table tr:last-child td { border-bottom: none; }

.legal-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

.legal-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 16px 0;
}

/* Back to home button */
.legal-back {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

/* Mobile */
@media (max-width: 900px) {
  .legal-page { padding: 48px 0 80px; }
  .legal-header { padding-bottom: 28px; margin-bottom: 32px; }
  .legal-header h1 { font-size: clamp(28px, 8vw, 40px); }
  .legal-content h2 { margin-top: 40px !important; font-size: 22px; padding-top: 20px; }
  .legal-content h3 { font-size: 18px; margin-top: 24px !important; }
  .legal-content { font-size: 15px; }
  .legal-content p { font-size: 15px; }
  .legal-content table { font-size: 14px; display: block; overflow-x: auto; }
  .legal-back { margin-top: 48px; padding-top: 28px; }
}

/* WordPress core classes */
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}
