<?php
/**
 * /verkoopvoorwaarden — strenge, juridische versie van de algemene verkoopvoorwaarden.
 * Wordt ook als bijlage bij de offerte-tekening getoond.
 *
 * Bron-bestand: /home/www.hetverhuizteam.com/public_html/data/verkoopvoorwaarden.html
 * (gedeeld via symlink hetverhuizteam → deverhuizing.nl/data)
 */
@include '/home/www.itlive.nl/public_html/subdomains/public/sites.itlive.nl/CLIENTS/preview-basepath.php';
require_once __DIR__ . '/includes/config.php';

$src = __DIR__ . '/data/verkoopvoorwaarden.html';
if (!is_file($src)) {
    $src = '/home/www.hetverhuizteam.com/public_html/data/verkoopvoorwaarden.html';
}

if (!is_file($src)) {
    http_response_code(503);
    echo 'Verkoopvoorwaarden zijn tijdelijk niet beschikbaar. Neem contact op via ' . (defined('EMAIL') ? EMAIL : 'info@deverhuizing.nl') . '.';
    exit;
}

// Plain mode (?print=1) — serveer ruwe HTML, geen site-shell.
if (!empty($_GET['print']) || !empty($_GET['raw'])) {
    header('Content-Type: text/html; charset=utf-8');
    readfile($src);
    exit;
}

$pageTitle       = 'Verkoopvoorwaarden — De Verhuizing (volledig juridisch)';
$pageDescription = 'Volledige verkoopvoorwaarden van DE VERHUIZING.NL — wettelijk geldig bij iedere offerte- en opdrachtbevestiging, gebaseerd op AV 2006 / AVVV.';
$page_image = 'assets/images/og-default.webp';
require_once __DIR__ . '/includes/head.php';
require_once __DIR__ . '/includes/header.php';
?>
<section class="section av-strict">
  <div class="container" style="max-width:880px">
    <div class="strict-meta">
      <a href="<?= $rel_path ?>algemene-voorwaarden" class="back-light"><i class="fas fa-arrow-left"></i> Light-versie</a>
      <a href="?print=1" target="_blank" class="print-link"><i class="fas fa-print"></i> Printvriendelijk</a>
    </div>
    <div class="strict-frame">
      <?php
      $html = (string)file_get_contents($src);
      // strip outer html/head/body — alleen de inhoud renderen binnen onze site-shell
      if (preg_match('~<body[^>]*>(.*?)</body>~is', $html, $m)) {
          echo $m[1];
      } else {
          echo $html;
      }
      ?>
    </div>
  </div>
</section>
<style>
.av-strict{background:#f8fafc;padding:2.4rem 0 4rem}
.strict-meta{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;font-size:.92rem}
.strict-meta a{color:var(--primary);text-decoration:none;font-weight:600;display:inline-flex;align-items:center;gap:.45rem}
.strict-meta a:hover{text-decoration:underline}
.strict-frame{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:2rem 2.2rem;box-shadow:0 1px 3px rgba(15,23,42,.04)}
.strict-frame .wrap{max-width:none;padding:0}
@media(max-width:640px){.strict-frame{padding:1.4rem 1.2rem}}
</style>
<?php require_once __DIR__ . '/includes/footer.php'; ?>
